Allow trailing commas in string array declarations. (bug 6239)
This commit is contained in:
parent
89f5d6ecfb
commit
74908098f4
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user