tccpp.c: fix empty stringify

#define STRINGIFY2(x) #x
    #define STRINGIFY(x) STRINGIFY2(x)
    STRINGIFY()

should produce "", not "\301".
master
Philip 2015-05-01 14:48:25 +00:00
parent 951a43ea6c
commit a6b94eff79
1 changed files with 1 additions and 1 deletions

View File

@ -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;