** Change all pointers to the stack into offsets. */
| 160 | ** Change all pointers to the stack into offsets. |
| 161 | */ |
| 162 | static void relstack (lua_State *L) { |
| 163 | CallInfo *ci; |
| 164 | UpVal *up; |
| 165 | L->top.offset = savestack(L, L->top.p); |
| 166 | L->tbclist.offset = savestack(L, L->tbclist.p); |
| 167 | for (up = L->openupval; up != NULL; up = up->u.open.next) |
| 168 | up->v.offset = savestack(L, uplevel(up)); |
| 169 | for (ci = L->ci; ci != NULL; ci = ci->previous) { |
| 170 | ci->top.offset = savestack(L, ci->top.p); |
| 171 | ci->func.offset = savestack(L, ci->func.p); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | |
| 176 | /* |