diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-10 10:13:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-10 10:13:36 -0200 |
commit | 47fc57a2529c83376883f36954082cfe80ae588f (patch) | |
tree | c2e57e2f9f7d78279144bfd9cbd04a3b1b131f12 /lfunc.h | |
parent | 4d5fe1f54bc00850f77a7c42f9e95d0ff3f1ab5b (diff) | |
download | lua-47fc57a2529c83376883f36954082cfe80ae588f.tar.gz lua-47fc57a2529c83376883f36954082cfe80ae588f.tar.bz2 lua-47fc57a2529c83376883f36954082cfe80ae588f.zip |
`TObject' renamed to `TValue' + other name changes and better assertions
for incremental garbage collection
Diffstat (limited to 'lfunc.h')
-rw-r--r-- | lfunc.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.h,v 1.22 2003/10/20 17:42:41 roberto Exp roberto $ | 2 | ** $Id: lfunc.h,v 1.23 2003/11/24 18:50:36 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -12,15 +12,15 @@ | |||
12 | 12 | ||
13 | 13 | ||
14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ | 14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ |
15 | cast(int, sizeof(TObject)*((n)-1))) | 15 | cast(int, sizeof(TValue)*((n)-1))) |
16 | 16 | ||
17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ | 17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ |
18 | cast(int, sizeof(TObject *)*((n)-1))) | 18 | cast(int, sizeof(TValue *)*((n)-1))) |
19 | 19 | ||
20 | 20 | ||
21 | Proto *luaF_newproto (lua_State *L); | 21 | Proto *luaF_newproto (lua_State *L); |
22 | Closure *luaF_newCclosure (lua_State *L, int nelems); | 22 | Closure *luaF_newCclosure (lua_State *L, int nelems); |
23 | Closure *luaF_newLclosure (lua_State *L, int nelems, TObject *e); | 23 | Closure *luaF_newLclosure (lua_State *L, int nelems, TValue *e); |
24 | UpVal *luaF_newupval (lua_State *L); | 24 | UpVal *luaF_newupval (lua_State *L); |
25 | UpVal *luaF_findupval (lua_State *L, StkId level); | 25 | UpVal *luaF_findupval (lua_State *L, StkId level); |
26 | void luaF_close (lua_State *L, StkId level); | 26 | void luaF_close (lua_State *L, StkId level); |