History

tccpp.c: unterminated macro argument error message

#define a(x) x a(( would produce "error: , expected" when what's actually expected is a ')'.

Philip committed 11 years ago

Commit 823d0581 parent 2f90db41 file · +2 −0Browse files

Unified · Split

tccpp.c+2−0
@@ -2977,6 +2977,8 @@ static int macro_subst_tok(TokenString *tok_str, · 2976 unmodified lines
29772977 tok_str_add2(&str, tok, &tokc);
29782978 next_nomacro_spc();
29792979 }
2980+ if (parlevel)
2981+ expect(")");
29802982 str.len -= spc;
29812983 if (str.len == 0)
29822984 tok_str_add(&str, TOK_PLCHLDR);

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