diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-02-23 14:30:22 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-02-23 14:30:22 -0300 |
commit | d55bb795faaa3a632aeb92fd29fc12b796ae7968 (patch) | |
tree | e81b84b41de1264dd078cec37541716ba0ffcf27 /lstate.c | |
parent | d84cc9d2dbf1f44e7126fe3ed9a82eed9757a63a (diff) | |
download | lua-d55bb795faaa3a632aeb92fd29fc12b796ae7968.tar.gz lua-d55bb795faaa3a632aeb92fd29fc12b796ae7968.tar.bz2 lua-d55bb795faaa3a632aeb92fd29fc12b796ae7968.zip |
details
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.23 2005/01/18 17:18:09 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.24 2005/02/10 13:25:02 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -120,7 +120,7 @@ static void close_state (lua_State *L) { | |||
120 | luaZ_freebuffer(L, &g->buff); | 120 | luaZ_freebuffer(L, &g->buff); |
121 | freestack(L, L); | 121 | freestack(L, L); |
122 | lua_assert(g->totalbytes == sizeof(LG)); | 122 | lua_assert(g->totalbytes == sizeof(LG)); |
123 | (*g->realloc)(g->ud, fromstate(L), state_size(LG), 0); | 123 | (*g->frealloc)(g->ud, fromstate(L), state_size(LG), 0); |
124 | } | 124 | } |
125 | 125 | ||
126 | 126 | ||
@@ -160,7 +160,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
160 | L->marked = luaC_white(g); | 160 | L->marked = luaC_white(g); |
161 | set2bits(L->marked, FIXEDBIT, SFIXEDBIT); | 161 | set2bits(L->marked, FIXEDBIT, SFIXEDBIT); |
162 | preinit_state(L, g); | 162 | preinit_state(L, g); |
163 | g->realloc = f; | 163 | g->frealloc = f; |
164 | g->ud = ud; | 164 | g->ud = ud; |
165 | g->mainthread = L; | 165 | g->mainthread = L; |
166 | g->uvhead.u.l.prev = &g->uvhead; | 166 | g->uvhead.u.l.prev = &g->uvhead; |