fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)
This commit is contained in:
5
tcc.c
5
tcc.c
@ -4240,7 +4240,10 @@ static inline int *macro_twosharps(const int *macro_str)
|
|||||||
/* if number, then create a number token */
|
/* if number, then create a number token */
|
||||||
/* NOTE: no need to allocate because
|
/* NOTE: no need to allocate because
|
||||||
tok_str_add2() does it */
|
tok_str_add2() does it */
|
||||||
tokc.cstr = &cstr;
|
cstr_reset(&tokcstr);
|
||||||
|
tokcstr = cstr;
|
||||||
|
cstr_new(&cstr);
|
||||||
|
tokc.cstr = &tokcstr;
|
||||||
} else {
|
} else {
|
||||||
/* if identifier, we must do a test to
|
/* if identifier, we must do a test to
|
||||||
validate we have a correct identifier */
|
validate we have a correct identifier */
|
||||||
|
|||||||
Reference in New Issue
Block a user