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 */
needtoken('}');
} else {
if (!lexpeek('}'))
{
init(ident,&ctag,errorfound);
matchtag(tag,ctag,TRUE);
}
} /* if */
/* fill up the literal queue with a series */
if (ellips) {