mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-12 09:00:09 +08:00
Extend skip_or_save_block
Make it stop also before outer level closing parens. This way we can now also skip/save the expression inside "foobar(42 + 41)".
This commit is contained in:
parent
27ca303874
commit
580ad5f24c
2
tccgen.c
2
tccgen.c
@ -5878,7 +5878,7 @@ static void skip_or_save_block(TokenString **str)
|
||||
if (str)
|
||||
*str = tok_str_alloc();
|
||||
|
||||
while ((level > 0 || (tok != '}' && tok != ',' && tok != ';'))) {
|
||||
while ((level > 0 || (tok != '}' && tok != ',' && tok != ';' && tok != ')'))) {
|
||||
int t;
|
||||
if (tok == TOK_EOF) {
|
||||
if (str || level > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user