** Change all pointers to the stack into offsets. */
| 250 | ** Change all pointers to the stack into offsets. |
| 251 | */ |
| 252 | static void relstack (lua_State *L) { |
| 253 | CallInfo *ci; |
| 254 | UpVal *up; |
| 255 | L->top.offset = savestack(L, L->top.p); |
| 256 | L->tbclist.offset = savestack(L, L->tbclist.p); |
| 257 | for (up = L->openupval; up != NULL; up = up->u.open.next) |
| 258 | up->v.offset = savestack(L, uplevel(up)); |
| 259 | for (ci = L->ci; ci != NULL; ci = ci->previous) { |
| 260 | ci->top.offset = savestack(L, ci->top.p); |
| 261 | ci->func.offset = savestack(L, ci->func.p); |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | |
| 266 | /* |