History

tccpp.c: reset spc after macro_subst_tok()

This bug doesn't seem to affect anything currently, but does interfere with miscellaneous tccpp.c fixes for the test cases described here: http://lists.nongnu.org/archive/html/tinycc-devel/2015-05/msg00002.html

Philip committed 11 years ago

Commit 1e878201 parent 3a922ad1 file · +1 −0Browse files

Unified · Split

tccpp.c+1−0
@@ -3120,6 +3120,7 @@ static void macro_subst(TokenString *tok_str, Sym **nested_list, · 3119 unmodified lines
31203120 macro_ptr = (int *)ptr;
31213121 tok = t;
31223122 ret = macro_subst_tok(tok_str, nested_list, s, can_read_stream);
3123+ spc = tok_str->len && is_space(tok_str->str[tok_str->len-1]);
31233124 ptr = (int *)macro_ptr;
31243125 macro_ptr = ml.p;
31253126 if (can_read_stream && *can_read_stream == &ml)

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