From 823d0583dc34f27bff869de2915523f60ded4e93 Mon Sep 17 00:00:00 2001 From: Philip Date: Sat, 2 May 2015 14:47:11 +0000 Subject: [PATCH] tccpp.c: unterminated macro argument error message #define a(x) x a(( would produce "error: , expected" when what's actually expected is a ')'. --- tccpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tccpp.c b/tccpp.c index e06f7dd..fa29ca9 100644 --- a/tccpp.c +++ b/tccpp.c @@ -2977,6 +2977,8 @@ static int macro_subst_tok(TokenString *tok_str, tok_str_add2(&str, tok, &tokc); next_nomacro_spc(); } + if (parlevel) + expect(")"); str.len -= spc; if (str.len == 0) tok_str_add(&str, TOK_PLCHLDR);