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 /inout.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 'inout.h')
-rw-r--r-- | inout.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: inout.h,v 1.8 1995/05/02 18:43:03 roberto Exp roberto $ | 2 | ** $Id: inout.h,v 1.9 1995/05/16 17:23:58 roberto Exp roberto $ |
3 | */ | 3 | */ |
4 | 4 | ||
5 | 5 | ||
@@ -12,21 +12,18 @@ | |||
12 | extern Word lua_linenumber; | 12 | extern Word lua_linenumber; |
13 | extern Bool lua_debug; | 13 | extern Bool lua_debug; |
14 | extern Word lua_debugline; | 14 | extern Word lua_debugline; |
15 | extern char *lua_parsedfile; | ||
15 | 16 | ||
16 | char *lua_openfile (char *fn); | 17 | char *lua_openfile (char *fn); |
17 | void lua_closefile (void); | 18 | void lua_closefile (void); |
18 | char *lua_openstring (char *s); | 19 | void lua_openstring (char *s); |
19 | void lua_closestring (void); | 20 | void lua_closestring (void); |
20 | void lua_pushfunction (char *file, Word function); | ||
21 | void lua_popfunction (void); | ||
22 | void luaI_reportbug (char *s, int err); | ||
23 | 21 | ||
24 | void lua_internaldofile (void); | 22 | void lua_internaldofile (void); |
25 | void lua_internaldostring (void); | 23 | void lua_internaldostring (void); |
26 | void lua_print (void); | 24 | void lua_print (void); |
27 | void luaI_type (void); | 25 | void luaI_type (void); |
28 | void lua_obj2number (void); | 26 | void lua_obj2number (void); |
29 | void luaI_getstack (void); | ||
30 | void luaI_error (void); | 27 | void luaI_error (void); |
31 | 28 | ||
32 | #endif | 29 | #endif |