From 2cffb08a5c770678999a313a83c76652a3d02d4c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 17 Oct 1995 09:58:41 -0200 Subject: 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. --- opcode.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'opcode.h') diff --git a/opcode.h b/opcode.h index 3af5597f..913000a2 100644 --- a/opcode.h +++ b/opcode.h @@ -1,6 +1,6 @@ /* ** TeCGraf - PUC-Rio -** $Id: opcode.h,v 3.11 1995/04/11 17:56:30 celes Exp $ +** $Id: opcode.h,v 3.12 1995/10/04 17:13:02 roberto Exp roberto $ */ #ifndef opcode_h @@ -68,9 +68,7 @@ typedef enum CALLFUNC, RETCODE0, RETCODE, - SETFUNCTION, SETLINE, - RESET } OpCode; #define MULT_RET 255 @@ -149,7 +147,7 @@ void lua_setinput (Input fn); /* from "lex.c" module */ char *lua_lasttext (void); /* from "lex.c" module */ int yylex (void); /* from "lex.c" module */ void lua_parse (TFunc *tf); /* from "lua.stx" module */ -void lua_travstack (void (*fn)(Object *)); +void lua_travstack (int (*fn)(Object *)); Object *luaI_Address (lua_Object o); void luaI_pushobject (Object *o); void luaI_gcFB (Object *o); -- cgit v1.2.3-55-g6feb