diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-25 11:05:51 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-25 11:05:51 -0200 |
commit | 9efc257d9d774501af4538a289729f3e8e5e3d7e (patch) | |
tree | c4113f56f9bdcf6e1e66ac11f2cf5483387f3bc8 /opcode.h | |
parent | fa71304e54f304ceceddef3a4b97b38228822e94 (diff) | |
download | lua-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.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 | ||
90 | typedef struct Object | 91 | typedef struct Object |
@@ -147,6 +148,7 @@ void lua_setinput (Input fn); /* from "lex.c" module */ | |||
147 | char *lua_lasttext (void); /* from "lex.c" module */ | 148 | char *lua_lasttext (void); /* from "lex.c" module */ |
148 | int yylex (void); /* from "lex.c" module */ | 149 | int yylex (void); /* from "lex.c" module */ |
149 | void lua_parse (TFunc *tf); /* from "lua.stx" module */ | 150 | void lua_parse (TFunc *tf); /* from "lua.stx" module */ |
151 | void luaI_codedebugline (int line); /* from "lua.stx" module */ | ||
150 | void lua_travstack (int (*fn)(Object *)); | 152 | void lua_travstack (int (*fn)(Object *)); |
151 | Object *luaI_Address (lua_Object o); | 153 | Object *luaI_Address (lua_Object o); |
152 | void luaI_pushobject (Object *o); | 154 | void luaI_pushobject (Object *o); |