aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-05-11 11:19:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-05-11 11:19:32 -0300
commit6eb1399a1c662f45ab5511a5e7d35fdb967ec076 (patch)
treecec3750f9655d6abb1829cb0f2f72c5497d584f8 /lstate.h
parentc390f73e3b3853fb64a057bdcc2a79fc87e13ad3 (diff)
downloadlua-6eb1399a1c662f45ab5511a5e7d35fdb967ec076.tar.gz
lua-6eb1399a1c662f45ab5511a5e7d35fdb967ec076.tar.bz2
lua-6eb1399a1c662f45ab5511a5e7d35fdb967ec076.zip
array Cblocks should grow dynamically
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lstate.h b/lstate.h
index 795a6008..541c473d 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.16 1999/04/13 19:30:51 roberto Exp roberto $ 2** $Id: lstate.h,v 1.17 1999/05/10 13:54: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*/
@@ -14,8 +14,6 @@
14#include "luadebug.h" 14#include "luadebug.h"
15 15
16 16
17#define MAX_C_BLOCKS 10
18
19#define GARBAGE_BLOCK 150 17#define GARBAGE_BLOCK 150
20 18
21 19
@@ -69,7 +67,8 @@ struct lua_State {
69 int Mbuffbase; /* current first position of Mbuffer */ 67 int Mbuffbase; /* current first position of Mbuffer */
70 int Mbuffsize; /* size of Mbuffer */ 68 int Mbuffsize; /* size of Mbuffer */
71 int Mbuffnext; /* next position to fill in Mbuffer */ 69 int Mbuffnext; /* next position to fill in Mbuffer */
72 struct C_Lua_Stack Cblocks[MAX_C_BLOCKS]; 70 struct C_Lua_Stack *Cblocks;
71 int sizeCblocks; /* size of Cblocks */
73 int numCblocks; /* number of nested Cblocks */ 72 int numCblocks; /* number of nested Cblocks */
74 int debug; 73 int debug;
75 lua_CHFunction callhook; 74 lua_CHFunction callhook;