aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-30 16:09:21 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-30 16:09:21 -0300
commitfdafd4f4a88d1584dea900517445a17d87f8b82f (patch)
tree52e38e886d569e77c1df82ebe2bcfbaafd4c6f75 /lparser.c
parentbeeff4ccafe5877d00119cb3d93f1f937d46dcfb (diff)
downloadlua-fdafd4f4a88d1584dea900517445a17d87f8b82f.tar.gz
lua-fdafd4f4a88d1584dea900517445a17d87f8b82f.tar.bz2
lua-fdafd4f4a88d1584dea900517445a17d87f8b82f.zip
new structure for collectable objects, sharing a common header
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lparser.c b/lparser.c
index 3331d673..e5dc2054 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.192 2002/08/20 20:03:05 roberto Exp roberto $ 2** $Id: lparser.c,v 1.193 2002/08/22 19:51:08 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -336,9 +336,6 @@ static void close_func (LexState *ls) {
336 Proto *f = fs->f; 336 Proto *f = fs->f;
337 removevars(ls, 0); 337 removevars(ls, 0);
338 luaK_codeABC(fs, OP_RETURN, 0, 1, 0); /* final return */ 338 luaK_codeABC(fs, OP_RETURN, 0, 1, 0); /* final return */
339 lua_assert(G(L)->roottable == fs->h);
340 G(L)->roottable = fs->h->next;
341 luaH_free(L, fs->h);
342 luaM_reallocvector(L, f->code, f->sizecode, fs->pc, Instruction); 339 luaM_reallocvector(L, f->code, f->sizecode, fs->pc, Instruction);
343 luaM_reallocvector(L, f->lineinfo, f->sizecode, fs->pc, int); 340 luaM_reallocvector(L, f->lineinfo, f->sizecode, fs->pc, int);
344 f->sizecode = fs->pc; 341 f->sizecode = fs->pc;