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 /opcode.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 'opcode.h')
-rw-r--r-- | opcode.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | ** TeCGraf - PUC-Rio | 2 | ** TeCGraf - PUC-Rio |
3 | ** $Id: opcode.h,v 3.11 1995/04/11 17:56:30 celes Exp $ | 3 | ** $Id: opcode.h,v 3.12 1995/10/04 17:13:02 roberto Exp roberto $ |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef opcode_h | 6 | #ifndef opcode_h |
@@ -68,9 +68,7 @@ typedef enum | |||
68 | CALLFUNC, | 68 | CALLFUNC, |
69 | RETCODE0, | 69 | RETCODE0, |
70 | RETCODE, | 70 | RETCODE, |
71 | SETFUNCTION, | ||
72 | SETLINE, | 71 | SETLINE, |
73 | RESET | ||
74 | } OpCode; | 72 | } OpCode; |
75 | 73 | ||
76 | #define MULT_RET 255 | 74 | #define MULT_RET 255 |
@@ -149,7 +147,7 @@ void lua_setinput (Input fn); /* from "lex.c" module */ | |||
149 | char *lua_lasttext (void); /* from "lex.c" module */ | 147 | char *lua_lasttext (void); /* from "lex.c" module */ |
150 | int yylex (void); /* from "lex.c" module */ | 148 | int yylex (void); /* from "lex.c" module */ |
151 | void lua_parse (TFunc *tf); /* from "lua.stx" module */ | 149 | void lua_parse (TFunc *tf); /* from "lua.stx" module */ |
152 | void lua_travstack (void (*fn)(Object *)); | 150 | void lua_travstack (int (*fn)(Object *)); |
153 | Object *luaI_Address (lua_Object o); | 151 | Object *luaI_Address (lua_Object o); |
154 | void luaI_pushobject (Object *o); | 152 | void luaI_pushobject (Object *o); |
155 | void luaI_gcFB (Object *o); | 153 | void luaI_gcFB (Object *o); |