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
65456545
65466546 ST_FUNC void gexpr(void)
65476547 {
6548− int comma_found = 0;
6549−
6550− while (1) {
6551− expr_eq();
6552− if (comma_found)
6553− convert_parameter_type (&vtop->type);
6554− if (tok != ',')
6555− break;
6548+ expr_eq();
6549+ while (tok == ',') {
65566550 constant_p &= (vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST &&
65576551 !((vtop->r & VT_SYM) && vtop->sym->a.addrtaken);
6558− comma_found = 1;
65596552 vpop();
65606553 next();
6554+ expr_eq();
6555+ convert_parameter_type (&vtop->type);
65616556 }
65626557 }
65636558

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