** Change back all offsets into pointers. */
| 267 | ** Change back all offsets into pointers. |
| 268 | */ |
| 269 | static void correctstack (lua_State *L, StkId oldstack) { |
| 270 | CallInfo *ci; |
| 271 | UpVal *up; |
| 272 | UNUSED(oldstack); |
| 273 | L->top.p = restorestack(L, L->top.offset); |
| 274 | L->tbclist.p = restorestack(L, L->tbclist.offset); |
| 275 | for (up = L->openupval; up != NULL; up = up->u.open.next) |
| 276 | up->v.p = s2v(restorestack(L, up->v.offset)); |
| 277 | for (ci = L->ci; ci != NULL; ci = ci->previous) { |
| 278 | ci->top.p = restorestack(L, ci->top.offset); |
| 279 | ci->func.p = restorestack(L, ci->func.offset); |
| 280 | if (isLua(ci)) |
| 281 | ci->u.l.trap = 1; /* signal to update 'trap' in 'luaV_execute' */ |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | #else |
| 286 | /* |