mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-12 07:00:07 +08:00
fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)
This commit is contained in:
parent
200b58dad8
commit
3b8cd565be
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user