diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-14 17:46:57 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-14 17:46:57 -0200 |
| commit | 8e7451512f01a89b4230be65cf086f7c1d41d2e2 (patch) | |
| tree | 2679a6305b6d7612ca9705142e3d4dbdcf32d676 /ldo.c | |
| parent | 4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec (diff) | |
| download | lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.gz lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.bz2 lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.zip | |
some more `const's
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); |
