I have an AppInfo block for which I'm trying to use the UxoAppInfoType
structure listed below. Notice the last member of the structure is an array
of structures of UxoDataFieldType (also listed).
typedef struct {
UInt16 renamedCategories; // bitfield of categories with a different
name
char categoryLabels[dmRecNumCategories][dmCategoryLength];
UInt8 categoryUniqIDs[dmRecNumCategories];
UInt8 lastUniqID; // Unique IDs generated by the device are between
// 0 - 127. Those from the PC are 128 - 255.
UInt8 reserved1; // from the compiler word aligning things
UInt16 reserved2;
UInt16 sortOrder; // Current sort order for database
UInt16 syncPref; // to set sync type from handheld
UInt16 numDataFields;
char dataSourceName[dsnLength];
char ownerInitials[4];
UxoDataFieldType fields[NUM_FIELDS];
} UxoAppInfoType;
typedef struct {
UInt16 dtype;
UInt16 dsize;
} UxoDataFieldType;
This does not compile in CW 8.3. The compiler chokes on that last member of
my UxoAppInfoType, saying it expects a semi-colon here (after fields):
UxoDataFieldType fields [NUM_FIELDS];
------------------------^
If I pull this array out of the UxoAppInfoType and just declare it as a
global on its own it compiles fine.
Can someone explain the reason for the compile error? Is is my ignorance of
C or a limitation of the the compiler or???
Thanks!
David Beers
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/