{
long Multiplicator;
- /* A comma and a multiplicator may follow */
- if (Tok == TOK_COMMA) {
- NextTok ();
+ /* A multiplicator may follow */
+ if (Tok != TOK_SEP) {
Multiplicator = ConstExpression ();
if (Multiplicator <= 0) {
Error ("Range error");
break;
case TOK_RES:
- Error ("Not implemented");
+ if (Tok == TOK_SEP) {
+ Error ("Size is missing");
+ } else {
+ MemberSize = Member (1);
+ }
break;
case TOK_TAG:
MemberSize = GetSymVal (SizeSym);
}
}
+ MemberSize *= Member (MemberSize);
break;
case TOK_STRUCT: