diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-04-13 16:30:51 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-04-13 16:30:51 -0300 |
commit | cb7f027380b9eebcf7ce2c00c6e1c5450d53b47a (patch) | |
tree | 066b9633bb085fa8b95c082e3bcf0cf50a90d207 /lstate.c | |
parent | 0bbd96bd5f973f716a93a704e04cf1c78145795f (diff) | |
download | lua-cb7f027380b9eebcf7ce2c00c6e1c5450d53b47a.tar.gz lua-cb7f027380b9eebcf7ce2c00c6e1c5450d53b47a.tar.bz2 lua-cb7f027380b9eebcf7ce2c00c6e1c5450d53b47a.zip |
IMtable must be initialized (and IMtable_size is not needed any more) due
to new way to handle growing vectors (previous modification).
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.8 1999/02/04 17:47:59 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.9 1999/02/25 15:17:01 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 | */ |
@@ -24,11 +24,15 @@ void lua_open (void) | |||
24 | { | 24 | { |
25 | if (lua_state) return; | 25 | if (lua_state) return; |
26 | lua_state = luaM_new(lua_State); | 26 | lua_state = luaM_new(lua_State); |
27 | L->numCblocks = 0; | ||
28 | L->Cstack.base = 0; | 27 | L->Cstack.base = 0; |
29 | L->Cstack.lua2C = 0; | 28 | L->Cstack.lua2C = 0; |
30 | L->Cstack.num = 0; | 29 | L->Cstack.num = 0; |
31 | L->errorJmp = NULL; | 30 | L->errorJmp = NULL; |
31 | L->Mbuffer = NULL; | ||
32 | L->Mbuffbase = 0; | ||
33 | L->Mbuffsize = 0; | ||
34 | L->Mbuffnext = 0; | ||
35 | L->numCblocks = 0; | ||
32 | L->debug = 0; | 36 | L->debug = 0; |
33 | L->callhook = NULL; | 37 | L->callhook = NULL; |
34 | L->linehook = NULL; | 38 | L->linehook = NULL; |
@@ -40,12 +44,9 @@ void lua_open (void) | |||
40 | L->rootglobal.marked = 0; | 44 | L->rootglobal.marked = 0; |
41 | L->roottable.next = NULL; | 45 | L->roottable.next = NULL; |
42 | L->roottable.marked = 0; | 46 | L->roottable.marked = 0; |
47 | L->IMtable = NULL; | ||
43 | L->refArray = NULL; | 48 | L->refArray = NULL; |
44 | L->refSize = 0; | 49 | L->refSize = 0; |
45 | L->Mbuffsize = 0; | ||
46 | L->Mbuffnext = 0; | ||
47 | L->Mbuffbase = 0; | ||
48 | L->Mbuffer = NULL; | ||
49 | L->GCthreshold = GARBAGE_BLOCK; | 50 | L->GCthreshold = GARBAGE_BLOCK; |
50 | L->nblocks = 0; | 51 | L->nblocks = 0; |
51 | luaD_init(); | 52 | luaD_init(); |