aboutsummaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-25 11:05:51 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-25 11:05:51 -0200
commit9efc257d9d774501af4538a289729f3e8e5e3d7e (patch)
treec4113f56f9bdcf6e1e66ac11f2cf5483387f3bc8 /opcode.h
parentfa71304e54f304ceceddef3a4b97b38228822e94 (diff)
downloadlua-9efc257d9d774501af4538a289729f3e8e5e3d7e.tar.gz
lua-9efc257d9d774501af4538a289729f3e8e5e3d7e.tar.bz2
lua-9efc257d9d774501af4538a289729f3e8e5e3d7e.zip
new method to keep debug line information: current line is stored on the
Lua stack, just below (new) base, with tag LUA_T_LINE. SETLINE opcodes are generated by lex.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/opcode.h b/opcode.h
index 913000a2..e2741108 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.12 1995/10/04 17:13:02 roberto Exp roberto $ 3** $Id: opcode.h,v 3.13 1995/10/17 11:58:41 roberto Exp roberto $
4*/ 4*/
5 5
6#ifndef opcode_h 6#ifndef opcode_h
@@ -68,7 +68,7 @@ typedef enum
68 CALLFUNC, 68 CALLFUNC,
69 RETCODE0, 69 RETCODE0,
70 RETCODE, 70 RETCODE,
71 SETLINE, 71 SETLINE
72} OpCode; 72} OpCode;
73 73
74#define MULT_RET 255 74#define MULT_RET 255
@@ -85,6 +85,7 @@ typedef union
85 TFunc *tf; 85 TFunc *tf;
86 struct Hash *a; 86 struct Hash *a;
87 void *u; 87 void *u;
88 int i;
88} Value; 89} Value;
89 90
90typedef struct Object 91typedef struct Object
@@ -147,6 +148,7 @@ void lua_setinput (Input fn); /* from "lex.c" module */
147char *lua_lasttext (void); /* from "lex.c" module */ 148char *lua_lasttext (void); /* from "lex.c" module */
148int yylex (void); /* from "lex.c" module */ 149int yylex (void); /* from "lex.c" module */
149void lua_parse (TFunc *tf); /* from "lua.stx" module */ 150void lua_parse (TFunc *tf); /* from "lua.stx" module */
151void luaI_codedebugline (int line); /* from "lua.stx" module */
150void lua_travstack (int (*fn)(Object *)); 152void lua_travstack (int (*fn)(Object *));
151Object *luaI_Address (lua_Object o); 153Object *luaI_Address (lua_Object o);
152void luaI_pushobject (Object *o); 154void luaI_pushobject (Object *o);