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
234234 ts = tcc_malloc(sizeof(TokenSym) + len);
235235 table_ident[i] = ts;
236236 ts->tok = tok_ident++;
237− ts->sym_define.data = tcc_malloc(sizeof(Sym**));
237+ ts->sym_define.data = tcc_malloc(sizeof(Sym*));
238238 ts->sym_define.off = 0;
239239 ts->sym_define.data[0] = NULL;
240240 ts->sym_define.size = 1;
@@ -1743,7 +1743,7 @@ pack_error: · 1502 unmodified lines
17431743 size *= 2;
17441744 if (size >= MACRO_STACK_SIZE)
17451745 tcc_error("stack full");
1746− def->data = tcc_realloc(def->data, size*sizeof(Sym**));
1746+ def->data = tcc_realloc(def->data, size*sizeof(Sym*));
17471747 def->size = size;
17481748 }
17491749 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