diff options
| author | Michael Matz <matz@suse.de> | 2017-07-03 19:15:16 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2017-07-03 19:15:16 +0200 |
| commit | 580ad5f24c9542bfaa7e24ae8a32af3e0e5a6cf9 (patch) | |
| tree | 1703813fd5150c4676d15100f251fc7d008d04ac | |
| parent | 27ca3038748d9bff81ae72cd19dadb4467e5d1de (diff) | |
| download | tinycc-580ad5f24c9542bfaa7e24ae8a32af3e0e5a6cf9.tar.gz tinycc-580ad5f24c9542bfaa7e24ae8a32af3e0e5a6cf9.tar.bz2 | |
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)".
| -rw-r--r-- | tccgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
