diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 13:46:44 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 13:46:44 -0200 |
commit | 0bbdddc86b1353fec36ae886b4142986f3c4713f (patch) | |
tree | 9eb933c8123911f9477e8b8b55344035c8077c01 /lgc.h | |
parent | b3b8dfaaea2dba7e7b4b898a5f767a80f36319f1 (diff) | |
download | lua-0bbdddc86b1353fec36ae886b4142986f3c4713f.tar.gz lua-0bbdddc86b1353fec36ae886b4142986f3c4713f.tar.bz2 lua-0bbdddc86b1353fec36ae886b4142986f3c4713f.zip |
allocator function receives the tag of object being allocated in 'osize'
when 'ptr' is NULL.
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.25 2009/12/11 19:14:59 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.26 2009/12/11 21:31:14 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -98,7 +98,8 @@ LUAI_FUNC void luaC_freeallobjects (lua_State *L); | |||
98 | LUAI_FUNC void luaC_step (lua_State *L); | 98 | LUAI_FUNC void luaC_step (lua_State *L); |
99 | LUAI_FUNC void luaC_runtilstate (lua_State *L, int statesmask); | 99 | LUAI_FUNC void luaC_runtilstate (lua_State *L, int statesmask); |
100 | LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); | 100 | LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); |
101 | LUAI_FUNC void luaC_link (lua_State *L, GCObject *o, lu_byte tt); | 101 | LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, |
102 | GCObject **list, int offset); | ||
102 | LUAI_FUNC void luaC_linkupval (lua_State *L, UpVal *uv); | 103 | LUAI_FUNC void luaC_linkupval (lua_State *L, UpVal *uv); |
103 | LUAI_FUNC void luaC_barrierf (lua_State *L, GCObject *o, GCObject *v); | 104 | LUAI_FUNC void luaC_barrierf (lua_State *L, GCObject *o, GCObject *v); |
104 | LUAI_FUNC void luaC_barrierback (lua_State *L, Table *t); | 105 | LUAI_FUNC void luaC_barrierback (lua_State *L, Table *t); |