tccpp.c: Fix failing PPTest 03 by reverting rogue modification in macro_arg_subst
This commit is contained in:
2
tccpp.c
2
tccpp.c
@ -2794,7 +2794,7 @@ static int *macro_arg_subst(Sym **nested_list, const int *macro_str, Sym *args)
|
|||||||
&& 0 == check_space(t, &spc)) {
|
&& 0 == check_space(t, &spc)) {
|
||||||
const char *s = get_tok_str(t, &cval);
|
const char *s = get_tok_str(t, &cval);
|
||||||
while (*s) {
|
while (*s) {
|
||||||
if (/*t == TOK_PPSTR &&*/ *s != '\'')
|
if (t == TOK_PPSTR && *s != '\'')
|
||||||
add_char(&cstr, *s);
|
add_char(&cstr, *s);
|
||||||
else
|
else
|
||||||
cstr_ccat(&cstr, *s);
|
cstr_ccat(&cstr, *s);
|
||||||
|
|||||||
Reference in New Issue
Block a user