summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-17 09:58:41 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-17 09:58:41 -0200
commit2cffb08a5c770678999a313a83c76652a3d02d4c (patch)
tree2a638e6dc4e4682863aadcff0073fa7af0c6198e /opcode.h
parent15f40fddca66301a53f8b0adf41958c7e9add945 (diff)
downloadlua-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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/opcode.h b/opcode.h
index 3af5597f..913000a2 100644
--- a/opcode.h
+++ b/opcode.h
@@ -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 */
149char *lua_lasttext (void); /* from "lex.c" module */ 147char *lua_lasttext (void); /* from "lex.c" module */
150int yylex (void); /* from "lex.c" module */ 148int yylex (void); /* from "lex.c" module */
151void lua_parse (TFunc *tf); /* from "lua.stx" module */ 149void lua_parse (TFunc *tf); /* from "lua.stx" module */
152void lua_travstack (void (*fn)(Object *)); 150void lua_travstack (int (*fn)(Object *));
153Object *luaI_Address (lua_Object o); 151Object *luaI_Address (lua_Object o);
154void luaI_pushobject (Object *o); 152void luaI_pushobject (Object *o);
155void luaI_gcFB (Object *o); 153void luaI_gcFB (Object *o);