In ToDoDB.h, when defining a structure, the author sometimes add "reserved" member with comment "from the compiler word aligning things". Why?
typedef struct {
DateType dueDate;
UInt8 priority; // high bit is complete flag
UInt8 reserved; // from the compiler word aligning things
Char * description;
Char * note;
} ToDoItemType;Is it necessary to make the size of any structure to be multiple of word size, such as 16, 32, 48, 64 bits?
Is this related to a "fatal error: non-word-aligned handle".
Regards, John
_________________________________________________________________
Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
