Showing the changes to tccpp.c (1 of 3 files). Show all
Unified · Split
| @@ -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; |