diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-14 15:12:35 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-14 15:12:35 -0300 |
commit | 870f61d2998cc9a998b9599997ae8975879d9314 (patch) | |
tree | e87398ff6bcf367357d7e6813332568247136a9c /ldo.c | |
parent | c845ec777a29e434da6ceee50de9d5a6dfa40ea7 (diff) | |
download | lua-870f61d2998cc9a998b9599997ae8975879d9314.tar.gz lua-870f61d2998cc9a998b9599997ae8975879d9314.tar.bz2 lua-870f61d2998cc9a998b9599997ae8975879d9314.zip |
code redistribution
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.71 2000/03/30 17:19:48 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.72 2000/03/30 20:55:50 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 | */ |
@@ -326,17 +326,6 @@ static int do_main (lua_State *L, ZIO *z, int bin) { | |||
326 | } | 326 | } |
327 | 327 | ||
328 | 328 | ||
329 | void luaD_gcIM (lua_State *L, const TObject *o) { | ||
330 | const TObject *im = luaT_getimbyObj(L, o, IM_GC); | ||
331 | if (ttype(im) != TAG_NIL) { | ||
332 | luaD_checkstack(L, 2); | ||
333 | *(L->top++) = *im; | ||
334 | *(L->top++) = *o; | ||
335 | luaD_call(L, L->top-2, 0); | ||
336 | } | ||
337 | } | ||
338 | |||
339 | |||
340 | #define MAXFILENAME 260 /* maximum part of a file name kept */ | 329 | #define MAXFILENAME 260 /* maximum part of a file name kept */ |
341 | 330 | ||
342 | int lua_dofile (lua_State *L, const char *filename) { | 331 | int lua_dofile (lua_State *L, const char *filename) { |