Skip to content

Commit

Permalink
Rewrite gexpr a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
hermantb committed Jan 8, 2024
1 parent 2701dcf commit 6120656
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tccgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -6545,19 +6545,14 @@ static void expr_eq(void)

ST_FUNC void gexpr(void)
{
int comma_found = 0;

while (1) {
expr_eq();
if (comma_found)
convert_parameter_type (&vtop->type);
if (tok != ',')
break;
expr_eq();
while (tok == ',') {
constant_p &= (vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST &&
!((vtop->r & VT_SYM) && vtop->sym->a.addrtaken);
comma_found = 1;
vpop();
next();
expr_eq();
convert_parameter_type (&vtop->type);
}
}

Expand Down

0 comments on commit 6120656

Please sign in to comment.