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
2977 tok_str_add2(&str, tok, &tokc);2977 tok_str_add2(&str, tok, &tokc);
2978 next_nomacro_spc();2978 next_nomacro_spc();
2979 }2979 }
2980 if (parlevel)
2981 expect(")");
2980 str.len -= spc;2982 str.len -= spc;
2981 if (str.len == 0)2983 if (str.len == 0)
2982 tok_str_add(&str, TOK_PLCHLDR);2984 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