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