new style for debug information about functions: no more SETFUNCTION

opcodes. When a function is called, its entry in the stack is marked with
LUA_T_(C)MARK, so function 'luaD_stackedfunction' can find it if
needed.
Functions now have their file names in the headers, so there is no need
of 'addfile' and the like.
This commit is contained in:
Roberto Ierusalimschy
1995-10-17 09:58:41 -02:00
parent 15f40fddca
commit 2cffb08a5c
8 changed files with 121 additions and 214 deletions

4
func.h
View File

@@ -12,6 +12,10 @@ typedef struct TFunc
char marked;
int size;
Byte *code;
int lineDefined;
char *name1; /* function or method name (or null if main) */
char *name2; /* object name (or null if not method) */
char *fileName;
} TFunc;
Long luaI_funccollector (void);