History

tccpp.c: fix empty stringify

#define STRINGIFY2(x) #x #define STRINGIFY(x) STRINGIFY2(x) STRINGIFY() should produce "", not "\301".

Philip committed 11 years ago

Commit a6b94ef1 parent 951a43e1 file · +1 −1Browse files

Unified · Split

tccpp.c+1−1
@@ -2742,7 +2742,7 @@ static int *macro_arg_subst(Sym **nested_list, const int *macro_str, Sym *args) · 2741 unmodified lines
27422742 spc = 0;
27432743 while (*st) {
27442744 TOK_GET(&t, &st, &cval);
2745− if (!check_space(t, &spc))
2745+ if (t != TOK_PLCHLDR && !check_space(t, &spc))
27462746 cstr_cat(&cstr, get_tok_str(t, &cval));
27472747 }
27482748 cstr.size -= spc;

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