diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-10 15:05:08 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-10 15:05:08 -0300 |
commit | f1f271ae76e626d1e6ffe71d5589d9e0d995bac1 (patch) | |
tree | 601395f5038bb6c8904c01a1c14a39e2dd79acb6 | |
parent | 6c7334a9ac4b424a4fd52bfeb4d674bc7cfa4eb3 (diff) | |
download | lua-f1f271ae76e626d1e6ffe71d5589d9e0d995bac1.tar.gz lua-f1f271ae76e626d1e6ffe71d5589d9e0d995bac1.tar.bz2 lua-f1f271ae76e626d1e6ffe71d5589d9e0d995bac1.zip |
details
-rw-r--r-- | lcode.c | 4 | ||||
-rw-r--r-- | lcode.h | 3 | ||||
-rw-r--r-- | ldo.c | 5 | ||||
-rw-r--r-- | lopcodes.c | 4 |
4 files changed, 8 insertions, 8 deletions
@@ -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 | ||
176 | void luaK_checkstack (FuncState *fs, int n) { | 176 | static 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) |
@@ -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); | |||
45 | int luaK_codeABc (FuncState *fs, OpCode o, int A, unsigned int Bc); | 45 | int luaK_codeABc (FuncState *fs, OpCode o, int A, unsigned int Bc); |
46 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 46 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
47 | void luaK_nil (FuncState *fs, int from, int n); | 47 | void luaK_nil (FuncState *fs, int from, int n); |
48 | void luaK_checkstack (FuncState *fs, int n); | ||
49 | void luaK_reserveregs (FuncState *fs, int n); | 48 | void luaK_reserveregs (FuncState *fs, int n); |
50 | int luaK_stringK (FuncState *fs, TString *s); | 49 | int luaK_stringK (FuncState *fs, TString *s); |
51 | int luaK_numberK (FuncState *fs, lua_Number r); | 50 | int luaK_numberK (FuncState *fs, lua_Number r); |
@@ -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 */ |
@@ -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", |