History

fix push_macro, asked Tom to help me testfix push_macro

jiang committed 12 years ago

Commit 52891b61 parent 5a514103 files · +10 −3Browse files

Showing the changes to tccpp.c (1 of 3 files). Show all

Unified · Split

tccpp.c+2−2
@@ -234,7 +234,7 @@ static TokenSym *tok_alloc_new(TokenSym **pts, const char *str, int len) · 233 unmodified lines
234 ts = tcc_malloc(sizeof(TokenSym) + len);234 ts = tcc_malloc(sizeof(TokenSym) + len);
235 table_ident[i] = ts;235 table_ident[i] = ts;
236 ts->tok = tok_ident++;236 ts->tok = tok_ident++;
237 ts->sym_define.data = tcc_malloc(sizeof(Sym**));237 ts->sym_define.data = tcc_malloc(sizeof(Sym*));
238 ts->sym_define.off = 0;238 ts->sym_define.off = 0;
239 ts->sym_define.data[0] = NULL;239 ts->sym_define.data[0] = NULL;
240 ts->sym_define.size = 1;240 ts->sym_define.size = 1;
@@ -1743,7 +1743,7 @@ pack_error: · 1502 unmodified lines
1743 size *= 2;1743 size *= 2;
1744 if (size >= MACRO_STACK_SIZE)1744 if (size >= MACRO_STACK_SIZE)
1745 tcc_error("stack full");1745 tcc_error("stack full");
1746 def->data = tcc_realloc(def->data, size*sizeof(Sym**));1746 def->data = tcc_realloc(def->data, size*sizeof(Sym*));
1747 def->size = size;1747 def->size = size;
1748 }1748 }
1749 def->data[def->off] = tmp;1749 def->data[def->off] = tmp;

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