aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-10 15:05:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-10 15:05:08 -0300
commitf1f271ae76e626d1e6ffe71d5589d9e0d995bac1 (patch)
tree601395f5038bb6c8904c01a1c14a39e2dd79acb6
parent6c7334a9ac4b424a4fd52bfeb4d674bc7cfa4eb3 (diff)
downloadlua-f1f271ae76e626d1e6ffe71d5589d9e0d995bac1.tar.gz
lua-f1f271ae76e626d1e6ffe71d5589d9e0d995bac1.tar.bz2
lua-f1f271ae76e626d1e6ffe71d5589d9e0d995bac1.zip
details
-rw-r--r--lcode.c4
-rw-r--r--lcode.h3
-rw-r--r--ldo.c5
-rw-r--r--lopcodes.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/lcode.c b/lcode.c
index 51fe877d..32a56d14 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 1.93 2002/03/25 17:47:14 roberto Exp roberto $ 2** $Id: lcode.c,v 1.94 2002/04/02 20:34:53 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -173,7 +173,7 @@ void luaK_concat (FuncState *fs, int *l1, int l2) {
173} 173}
174 174
175 175
176void luaK_checkstack (FuncState *fs, int n) { 176static void luaK_checkstack (FuncState *fs, int n) {
177 int newstack = fs->freereg + n; 177 int newstack = fs->freereg + n;
178 if (newstack > fs->f->maxstacksize) { 178 if (newstack > fs->f->maxstacksize) {
179 if (newstack >= MAXSTACK) 179 if (newstack >= MAXSTACK)
diff --git a/lcode.h b/lcode.h
index 4bc50c51..57ceb662 100644
--- a/lcode.h
+++ b/lcode.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.h,v 1.29 2002/03/21 20:31:43 roberto Exp roberto $ 2** $Id: lcode.h,v 1.30 2002/04/02 20:34:53 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -45,7 +45,6 @@ void luaK_error (LexState *ls, const char *msg);
45int luaK_codeABc (FuncState *fs, OpCode o, int A, unsigned int Bc); 45int luaK_codeABc (FuncState *fs, OpCode o, int A, unsigned int Bc);
46int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); 46int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C);
47void luaK_nil (FuncState *fs, int from, int n); 47void luaK_nil (FuncState *fs, int from, int n);
48void luaK_checkstack (FuncState *fs, int n);
49void luaK_reserveregs (FuncState *fs, int n); 48void luaK_reserveregs (FuncState *fs, int n);
50int luaK_stringK (FuncState *fs, TString *s); 49int luaK_stringK (FuncState *fs, TString *s);
51int luaK_numberK (FuncState *fs, lua_Number r); 50int luaK_numberK (FuncState *fs, lua_Number r);
diff --git a/ldo.c b/ldo.c
index b0a0bd25..7df80b19 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 1.167 2002/03/25 19:45:06 roberto Exp roberto $ 2** $Id: ldo.c,v 1.168 2002/03/26 20:46:10 roberto Exp roberto $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -161,6 +161,7 @@ static void luaD_callHook (lua_State *L, lua_Hook callhook, const char *event) {
161 ar.event = event; 161 ar.event = event;
162 ar.i_ci = L->ci - L->base_ci; 162 ar.i_ci = L->ci - L->base_ci;
163 L->ci->pc = NULL; /* function is not active */ 163 L->ci->pc = NULL; /* function is not active */
164 L->ci->top = L->ci->base; /* `top' may not have a valid value yet */
164 dohook(L, &ar, callhook); 165 dohook(L, &ar, callhook);
165 } 166 }
166} 167}
@@ -208,7 +209,7 @@ StkId luaD_precall (lua_State *L, StkId func) {
208 LClosure *cl; 209 LClosure *cl;
209 if (++L->ci == L->end_ci) luaD_growCI(L); 210 if (++L->ci == L->end_ci) luaD_growCI(L);
210 ci = L->ci; 211 ci = L->ci;
211 ci->base = ci->top = func+1; /* pre-init `top' in case of errors */ 212 ci->base = func+1;
212 ci->pc = NULL; 213 ci->pc = NULL;
213 if (ttype(func) != LUA_TFUNCTION) /* `func' is not a function? */ 214 if (ttype(func) != LUA_TFUNCTION) /* `func' is not a function? */
214 func = tryfuncTM(L, func); /* check the `function' tag method */ 215 func = tryfuncTM(L, func); /* check the `function' tag method */
diff --git a/lopcodes.c b/lopcodes.c
index bbe66717..ac82dae2 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.c,v 1.14 2002/03/25 17:47:14 roberto Exp roberto $ 2** $Id: lopcodes.c,v 1.15 2002/04/09 19:47:44 roberto Exp roberto $
3** extracted automatically from lopcodes.h by mkprint.lua 3** extracted automatically from lopcodes.h by mkprint.lua
4** DO NOT EDIT 4** DO NOT EDIT
5** See Copyright Notice in lua.h 5** See Copyright Notice in lua.h
@@ -49,7 +49,7 @@ const char *const luaP_opnames[] = {
49 "RETURN", 49 "RETURN",
50 "FORLOOP", 50 "FORLOOP",
51 "TFORLOOP", 51 "TFORLOOP",
52 "OP_TFORPREP", 52 "TFORPREP",
53 "SETLIST", 53 "SETLIST",
54 "SETLISTO", 54 "SETLISTO",
55 "CLOSE", 55 "CLOSE",