diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-17 09:58:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-17 09:58:41 -0200 |
commit | 2cffb08a5c770678999a313a83c76652a3d02d4c (patch) | |
tree | 2a638e6dc4e4682863aadcff0073fa7af0c6198e /table.h | |
parent | 15f40fddca66301a53f8b0adf41958c7e9add945 (diff) | |
download | lua-2cffb08a5c770678999a313a83c76652a3d02d4c.tar.gz lua-2cffb08a5c770678999a313a83c76652a3d02d4c.tar.bz2 lua-2cffb08a5c770678999a313a83c76652a3d02d4c.zip |
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.
Diffstat (limited to 'table.h')
-rw-r--r-- | table.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | ** Module to control static tables | 2 | ** Module to control static tables |
3 | ** TeCGraf - PUC-Rio | 3 | ** TeCGraf - PUC-Rio |
4 | ** $Id: table.h,v 2.10 1994/12/20 21:20:36 roberto Exp roberto $ | 4 | ** $Id: table.h,v 2.11 1995/10/13 15:16:25 roberto Exp roberto $ |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef table_h | 7 | #ifndef table_h |
@@ -22,11 +22,10 @@ Word luaI_findsymbolbyname (char *name); | |||
22 | Word luaI_findsymbol (TreeNode *t); | 22 | Word luaI_findsymbol (TreeNode *t); |
23 | Word luaI_findconstant (TreeNode *t); | 23 | Word luaI_findconstant (TreeNode *t); |
24 | Word luaI_findconstantbyname (char *name); | 24 | Word luaI_findconstantbyname (char *name); |
25 | void lua_travsymbol (void (*fn)(Object *)); | 25 | int lua_markobject (Object *o); |
26 | void lua_markobject (Object *o); | ||
27 | void lua_pack (void); | 26 | void lua_pack (void); |
28 | char *lua_addfile (char *fn); | 27 | |
29 | int lua_delfile (void); | 28 | void luaI_funcInfo (Object *func, char **filename, char **funcname, |
30 | char *lua_filename (void); | 29 | char **objname, int *linedefined); |
31 | 30 | ||
32 | #endif | 31 | #endif |