From a6b94eff79d64e74505a40fb1d70d60e97d7c1f6 Mon Sep 17 00:00:00 2001 From: Philip Date: Fri, 1 May 2015 14:48:25 +0000 Subject: [PATCH] tccpp.c: fix empty stringify #define STRINGIFY2(x) #x #define STRINGIFY(x) STRINGIFY2(x) STRINGIFY() should produce "", not "\301". --- tccpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccpp.c b/tccpp.c index 0a99832d..8a063005 100644 --- a/tccpp.c +++ b/tccpp.c @@ -2742,7 +2742,7 @@ static int *macro_arg_subst(Sym **nested_list, const int *macro_str, Sym *args) spc = 0; while (*st) { TOK_GET(&t, &st, &cval); - if (!check_space(t, &spc)) + if (t != TOK_PLCHLDR && !check_space(t, &spc)) cstr_cat(&cstr, get_tok_str(t, &cval)); } cstr.size -= spc; -- 2.11.4.GIT