Unified · Split
| @@ -83,10 +83,15 @@ static unsigned long func_sub_sp_offset; · 82 unmodified lines | |||
| 83 | static unsigned long func_bound_offset; | 83 | static unsigned long func_bound_offset; |
| 84 | static int func_ret_sub; | 84 | static int func_ret_sub; |
| 85 | 85 | ||
| 86 | /* XXX: make it faster ? */ | ||
| 86 | void g(int c) | 87 | void g(int c) |
| 87 | { | 88 | { |
| 89 | int ind1; | ||
| 90 | ind1 = ind + 1; | ||
| 91 | if (ind1 > cur_text_section->data_allocated) | ||
| 92 | section_realloc(cur_text_section, ind1); | ||
| 88 | cur_text_section->data[ind] = c; | 93 | cur_text_section->data[ind] = c; |
| 89 | ind++; | 94 | ind = ind1; |
| 90 | } | 95 | } |
| 91 | 96 | ||
| 92 | void o(int c) | 97 | void o(int c) |
| @@ -129,10 +134,15 @@ void gsym(int t) · 36 unmodified lines | |||
| 129 | /* instruction + 4 bytes data. Return the address of the data */ | 134 | /* instruction + 4 bytes data. Return the address of the data */ |
| 130 | int oad(int c, int s) | 135 | int oad(int c, int s) |
| 131 | { | 136 | { |
| 137 | int ind1; | ||
| 138 | |||
| 132 | o(c); | 139 | o(c); |
| 140 | ind1 = ind + 4; | ||
| 141 | if (ind1 > cur_text_section->data_allocated) | ||
| 142 | section_realloc(cur_text_section, ind1); | ||
| 133 | *(int *)(cur_text_section->data + ind) = s; | 143 | *(int *)(cur_text_section->data + ind) = s; |
| 134 | s = ind; | 144 | s = ind; |
| 135 | ind = ind + 4; | 145 | ind = ind1; |
| 136 | return s; | 146 | return s; |
| 137 | } | 147 | } |
| 138 | 148 | ||