History

Rewrite gexpr a bit

herman ten brugge committed 2 years ago

Commit 61206561 parent 2701dcf1 file · +4 −9Browse files

Unified · Split

tccgen.c+4−9
@@ -6545,19 +6545,14 @@ static void expr_eq(void) · 6544 unmodified lines
6545 6545
6546ST_FUNC void gexpr(void)6546ST_FUNC void gexpr(void)
6547{6547{
6548 int comma_found = 0;6548 expr_eq();
6549 6549 while (tok == ',') {
6550 while (1) {
6551 expr_eq();
6552 if (comma_found)
6553 convert_parameter_type (&vtop->type);
6554 if (tok != ',')
6555 break;
6556 constant_p &= (vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST &&6550 constant_p &= (vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST &&
6557 !((vtop->r & VT_SYM) && vtop->sym->a.addrtaken);6551 !((vtop->r & VT_SYM) && vtop->sym->a.addrtaken);
6558 comma_found = 1;
6559 vpop();6552 vpop();
6560 next();6553 next();
6554 expr_eq();
6555 convert_parameter_type (&vtop->type);
6561 }6556 }
6562}6557}
6563 6558

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t