diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-29 17:19:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-29 17:19:20 -0300 |
commit | a69356e9e0a7525b1cebadc928a0efcce8c39b46 (patch) | |
tree | c676ee2997c699d3e0b036323ecbafa7ea0d786f /lvm.h | |
parent | b53dc0c4853c56694dda727793e5f6188de39dd8 (diff) | |
download | lua-a69356e9e0a7525b1cebadc928a0efcce8c39b46.tar.gz lua-a69356e9e0a7525b1cebadc928a0efcce8c39b46.tar.bz2 lua-a69356e9e0a7525b1cebadc928a0efcce8c39b46.zip |
no more special cases for closures with 0 upvalues (performance is the same,
memory use a little higher, code much simpler).
Diffstat (limited to '')
-rw-r--r-- | lvm.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.h,v 1.18 2000/03/09 00:19:22 roberto Exp roberto $ | 2 | ** $Id: lvm.h,v 1.19 2000/03/10 18:37:44 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -26,8 +26,9 @@ void luaV_settable (lua_State *L, StkId t, StkId top); | |||
26 | void luaV_rawsettable (lua_State *L, StkId t); | 26 | void luaV_rawsettable (lua_State *L, StkId t); |
27 | void luaV_getglobal (lua_State *L, GlobalVar *gv, StkId top); | 27 | void luaV_getglobal (lua_State *L, GlobalVar *gv, StkId top); |
28 | void luaV_setglobal (lua_State *L, GlobalVar *gv, StkId top); | 28 | void luaV_setglobal (lua_State *L, GlobalVar *gv, StkId top); |
29 | StkId luaV_execute (lua_State *L, const Closure *cl, const Proto *tf, StkId base); | 29 | StkId luaV_execute (lua_State *L, const Closure *cl, register StkId base); |
30 | void luaV_closure (lua_State *L, int nelems); | 30 | void luaV_Cclosure (lua_State *L, lua_CFunction c, int nelems); |
31 | void luaV_Lclosure (lua_State *L, Proto *l, int nelems); | ||
31 | int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r, StkId top); | 32 | int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r, StkId top); |
32 | 33 | ||
33 | #endif | 34 | #endif |