Allow trailing commas in string array declarations. (bug 6239)

This commit is contained in:
Ryan Stecker 2014-08-23 18:11:03 -05:00
parent 89f5d6ecfb
commit 74908098f4

View File

@ -2720,8 +2720,11 @@ static cell initvector(int ident,int tag,cell size,int fillzero,
} while (matchtoken(',')); /* do */ } while (matchtoken(',')); /* do */
needtoken('}'); needtoken('}');
} else { } else {
init(ident,&ctag,errorfound); if (!lexpeek('}'))
matchtag(tag,ctag,TRUE); {
init(ident,&ctag,errorfound);
matchtag(tag,ctag,TRUE);
}
} /* if */ } /* if */
/* fill up the literal queue with a series */ /* fill up the literal queue with a series */
if (ellips) { if (ellips) {