aboutsummaryrefslogtreecommitdiff
path: root/func.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-07 16:10:27 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-07 16:10:27 -0200
commit5a3a1fe458a7eab402f5386e4dcb8282c94ff068 (patch)
treefc315159d0b00d3e726c0a538e40b6acdaa3e013 /func.h
parent56fb06b6f5eaea4f3dba32af1cc476a99b678497 (diff)
downloadlua-5a3a1fe458a7eab402f5386e4dcb8282c94ff068.tar.gz
lua-5a3a1fe458a7eab402f5386e4dcb8282c94ff068.tar.bz2
lua-5a3a1fe458a7eab402f5386e4dcb8282c94ff068.zip
debug interface functions to manipulated local variables:
"lua_getlocal" and "lua_setlocal".
Diffstat (limited to 'func.h')
-rw-r--r--func.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/func.h b/func.h
index 2723180f..b4c275ad 100644
--- a/func.h
+++ b/func.h
@@ -4,8 +4,15 @@
4#include "types.h" 4#include "types.h"
5#include "lua.h" 5#include "lua.h"
6 6
7typedef struct LocVar
8{
9 TreeNode *varname; /* NULL signals end of scope */
10 int line;
11} LocVar;
12
13
7/* 14/*
8** Header para funcoes. 15** Function Headers
9*/ 16*/
10typedef struct TFunc 17typedef struct TFunc
11{ 18{
@@ -15,10 +22,17 @@ typedef struct TFunc
15 Byte *code; 22 Byte *code;
16 int lineDefined; 23 int lineDefined;
17 char *fileName; 24 char *fileName;
25 LocVar *locvars;
18} TFunc; 26} TFunc;
19 27
20Long luaI_funccollector (void); 28Long luaI_funccollector (void);
21void luaI_insertfunction (TFunc *f); 29void luaI_insertfunction (TFunc *f);
22 30
31void luaI_initTFunc (TFunc *f);
32
33void luaI_registerlocalvar (TreeNode *varname, int line);
34void luaI_unregisterlocalvar (int line);
35void luaI_closelocalvars (TFunc *func);
36char *luaI_getlocalname (TFunc *func, int local_number, int line);
23 37
24#endif 38#endif