[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] XaAES modifications and clarification



I have a couple of questions:

1)
I want to modify this "typedef enum" declaration (XA_RELATIVE in XA_TYPES.H):

	LT = 0,		/* 0000 */	/* Top right */
	LB,		/* 0001 */	/* Bottom right */
	RT,		/* 0010 */	/* Top left */
	RB,		/* 0011 */	/* Bottom left */
	
	CT,		/* 0100 */	/* Top centred */
	CB,		/* 0101 */	/* Bottom Centered */
	
	CR,		/* 0110 */	/* Right centered */
	CL,		/* 0111 */	/* Left centered */
	
	HLT,		/* 0000 */	/* Top right */
	HLB,		/* 0001 */	/* Bottom right */
	HRT,		/* 0010 */	/* Top left */
	HRB,		/* 0011 */	/* Bottom left */
	HCT,		/* 0100 */	/* Top centred */
	HCB,		/* 0101 */	/* Bottom Centered */
	
	HCR,		/* 0110 */	/* Right centered */
	HCL,		/* 0111 */	/* Left centered */

As you can see this results in easy confusion when reading large
volumes of data where this is used (WIN_DRAW.C)
can someone confirm "search for and check/replace on comaprisons", or
would there be some underlying (function) checking also required
I will verify the L vs R reference before commencing any changes, as
it may just be the comments that are wrong.

2)
in a header file (XA_TYPES.H) there are some of these:

struct remember_alloc; // ???
struct remember_alloc
{
	struct remember_alloc *next;
	void *addr;
};

what is happening here, why the double declaration (see: ???)


Thats it for the moment..

Paul