emit alignment directives properly
This commit is contained in:
parent
bf3e6753f3
commit
25f7bc06e3
3 changed files with 27 additions and 20 deletions
12
lisc/parse.c
12
lisc/parse.c
|
@ -728,14 +728,15 @@ parsetyp()
|
|||
static void
|
||||
parsedat(void cb(Dat *))
|
||||
{
|
||||
char s[NString];
|
||||
int t;
|
||||
Dat d;
|
||||
|
||||
d.type = DStart;
|
||||
cb(&d);
|
||||
if (nextnl() != TGlo || nextnl() != TEq)
|
||||
err("data name, then = expected");
|
||||
d.type = DName;
|
||||
d.u.str = tokval.str;
|
||||
cb(&d);
|
||||
strcpy(s, tokval.str);
|
||||
t = nextnl();
|
||||
if (t == TAlign) {
|
||||
if (nextnl() != TNum)
|
||||
|
@ -745,6 +746,9 @@ parsedat(void cb(Dat *))
|
|||
cb(&d);
|
||||
t = nextnl();
|
||||
}
|
||||
d.type = DName;
|
||||
d.u.str = s;
|
||||
cb(&d);
|
||||
if (t == TStr) {
|
||||
d.type = DA;
|
||||
d.u.str = tokval.str;
|
||||
|
@ -770,6 +774,8 @@ parsedat(void cb(Dat *))
|
|||
if (t != TComma)
|
||||
err(", or } expected");
|
||||
}
|
||||
d.type = DEnd;
|
||||
cb(&d);
|
||||
}
|
||||
|
||||
Fn *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue