diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.48 1999/10/04 17:51:04 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.49 1999/10/14 17:53:35 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 | */ |
@@ -101,7 +101,7 @@ void luaD_lineHook (int line) { | |||
101 | } | 101 | } |
102 | 102 | ||
103 | 103 | ||
104 | void luaD_callHook (StkId base, TProtoFunc *tf, int isreturn) { | 104 | void luaD_callHook (StkId base, const TProtoFunc *tf, int isreturn) { |
105 | struct C_Lua_Stack oldCLS = L->Cstack; | 105 | struct C_Lua_Stack oldCLS = L->Cstack; |
106 | StkId old_top = L->Cstack.lua2C = L->Cstack.base = L->stack.top-L->stack.stack; | 106 | StkId old_top = L->Cstack.lua2C = L->Cstack.base = L->stack.top-L->stack.stack; |
107 | L->Cstack.num = 0; | 107 | L->Cstack.num = 0; |
@@ -143,7 +143,8 @@ static StkId callC (lua_CFunction f, StkId base) { | |||
143 | } | 143 | } |
144 | 144 | ||
145 | 145 | ||
146 | static StkId callCclosure (struct Closure *cl, lua_CFunction f, StkId base) { | 146 | static StkId callCclosure (const struct Closure *cl, |
147 | lua_CFunction f, StkId base) { | ||
147 | TObject *pbase; | 148 | TObject *pbase; |
148 | int nup = cl->nelems; /* number of upvalues */ | 149 | int nup = cl->nelems; /* number of upvalues */ |
149 | luaD_checkstack(nup); | 150 | luaD_checkstack(nup); |