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

11
table.h
View File

@@ -1,7 +1,7 @@
/*
** Module to control static tables
** TeCGraf - PUC-Rio
** $Id: table.h,v 2.10 1994/12/20 21:20:36 roberto Exp roberto $
** $Id: table.h,v 2.11 1995/10/13 15:16:25 roberto Exp roberto $
*/
#ifndef table_h
@@ -22,11 +22,10 @@ Word luaI_findsymbolbyname (char *name);
Word luaI_findsymbol (TreeNode *t);
Word luaI_findconstant (TreeNode *t);
Word luaI_findconstantbyname (char *name);
void lua_travsymbol (void (*fn)(Object *));
void lua_markobject (Object *o);
int lua_markobject (Object *o);
void lua_pack (void);
char *lua_addfile (char *fn);
int lua_delfile (void);
char *lua_filename (void);
void luaI_funcInfo (Object *func, char **filename, char **funcname,
char **objname, int *linedefined);
#endif