bug (GC can collect long identifier during parser) + change (using

a single constant table for all functions in a chunk)
This commit is contained in:
Roberto Ierusalimschy
2013-08-30 13:01:37 -03:00
parent 4f292d753c
commit 8ef9e8460e
6 changed files with 47 additions and 46 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lparser.h,v 1.70 2012/05/08 13:53:33 roberto Exp roberto $
** $Id: lparser.h,v 1.71 2013/04/16 18:46:28 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -97,7 +97,6 @@ struct BlockCnt; /* defined in lparser.c */
/* state needed to generate code for a given function */
typedef struct FuncState {
Proto *f; /* current function header */
Table *h; /* table to find (and reuse) elements in `k' */
struct FuncState *prev; /* enclosing function */
struct LexState *ls; /* lexical state */
struct BlockCnt *bl; /* chain of current blocks */