mirror of
git://c9x.me/qbe.git
synced 2026-04-07 19:09:48 +00:00
use DEnd for strings too
This commit is contained in:
parent
25f7bc06e3
commit
b5d98b762f
@ -753,8 +753,7 @@ parsedat(void cb(Dat *))
|
|||||||
d.type = DA;
|
d.type = DA;
|
||||||
d.u.str = tokval.str;
|
d.u.str = tokval.str;
|
||||||
cb(&d);
|
cb(&d);
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
if (t != TLBrace)
|
if (t != TLBrace)
|
||||||
err("data contents must be { .. } or \" .. \"");
|
err("data contents must be { .. } or \" .. \"");
|
||||||
for (;;) {
|
for (;;) {
|
||||||
@ -774,6 +773,7 @@ parsedat(void cb(Dat *))
|
|||||||
if (t != TComma)
|
if (t != TComma)
|
||||||
err(", or } expected");
|
err(", or } expected");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
d.type = DEnd;
|
d.type = DEnd;
|
||||||
cb(&d);
|
cb(&d);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user