History

fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)

bellard committed 20 years ago

Commit 3b8cd561 parent 200b58d1 file · +4 −1Browse files

Unified · Split

tcc.c+4−1
@@ -4240,7 +4240,10 @@ static inline int *macro_twosharps(const int *macro_str) · 4239 unmodified lines
42404240 /* if number, then create a number token */
42414241 /* NOTE: no need to allocate because
42424242 tok_str_add2() does it */
4243− tokc.cstr = &cstr;
4243+ cstr_reset(&tokcstr);
4244+ tokcstr = cstr;
4245+ cstr_new(&cstr);
4246+ tokc.cstr = &tokcstr;
42444247 } else {
42454248 /* if identifier, we must do a test to
42464249 validate we have a correct identifier */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t