BIG CHANGE: functions have their own "constant table".

This commit is contained in:
Roberto Ierusalimschy
1997-07-30 19:00:50 -03:00
parent 1d7857bc63
commit 0892f0e5b7
12 changed files with 279 additions and 278 deletions

10
func.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: func.h,v 1.10 1997/07/29 19:44:02 roberto Exp roberto $
** $Id: func.h,v 1.11 1997/07/29 20:38:45 roberto Exp roberto $
*/
#ifndef func_h
@@ -25,16 +25,16 @@ typedef struct TFunc
int marked;
Byte *code;
int lineDefined;
char *fileName;
TaggedString *fileName;
struct TObject *consts;
int nconsts;
LocVar *locvars;
} TFunc;
TFunc *luaI_funccollector (long *cont);
void luaI_funcfree (TFunc *l);
void luaI_insertfunction (TFunc *f);
void luaI_funcmark (TFunc *f);
void luaI_initTFunc (TFunc *f);
void luaI_freefunc (TFunc *f);
char *luaI_getlocalname (TFunc *func, int local_number, int line);