Rewrite gexpr a bit
This commit is contained in:
parent
2701dcfb06
commit
6120656cbf
1 changed files with 4 additions and 9 deletions
11
tccgen.c
11
tccgen.c
|
@ -6545,19 +6545,14 @@ static void expr_eq(void)
|
||||||
|
|
||||||
ST_FUNC void gexpr(void)
|
ST_FUNC void gexpr(void)
|
||||||
{
|
{
|
||||||
int comma_found = 0;
|
|
||||||
|
|
||||||
while (1) {
|
|
||||||
expr_eq();
|
expr_eq();
|
||||||
if (comma_found)
|
while (tok == ',') {
|
||||||
convert_parameter_type (&vtop->type);
|
|
||||||
if (tok != ',')
|
|
||||||
break;
|
|
||||||
constant_p &= (vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST &&
|
constant_p &= (vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST &&
|
||||||
!((vtop->r & VT_SYM) && vtop->sym->a.addrtaken);
|
!((vtop->r & VT_SYM) && vtop->sym->a.addrtaken);
|
||||||
comma_found = 1;
|
|
||||||
vpop();
|
vpop();
|
||||||
next();
|
next();
|
||||||
|
expr_eq();
|
||||||
|
convert_parameter_type (&vtop->type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue