D->Index += DECODE_SIZE;
}
-
+
static void ParseStorageClass (DeclSpec* D, unsigned DefStorage)
/* Parse a storage class */
break;
NextToken ();
}
- ConsumeRCurly ();
+ ConsumeRCurly ();
}
TypeCpy (D->Type + D->Index, Spec->Type);
/* Check the size of the generated type */
- if (!IsTypeFunc (D->Type) && !IsTypeVoid (D->Type) && SizeOf (D->Type) >= 0x10000) {
- if (D->Ident[0] != '\0') {
- Error ("Size of `%s' is invalid", D->Ident);
- } else {
- Error ("Invalid size");
- }
+ if (!IsTypeFunc (D->Type) && !IsTypeVoid (D->Type)) {
+ unsigned Size = SizeOf (D->Type);
+ if (Size >= 0x10000) {
+ if (D->Ident[0] != '\0') {
+ Error ("Size of `%s' is invalid (0x%06X)", D->Ident, Size);
+ } else {
+ Error ("Invalid size in declaration (0x%06X)", Size);
+ }
+ }
}
}