aboutsummaryrefslogtreecommitdiff
path: root/func.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-26 12:21:56 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-26 12:21:56 -0200
commit15d48576ea737d51e579f101a870e37f62b81f22 (patch)
treeed2390188cfb5304d366696262ccda593f3e8589 /func.h
parent39b071f7b13e6ed6eff4a0f0471d2450a9c48084 (diff)
downloadlua-15d48576ea737d51e579f101a870e37f62b81f22.tar.gz
lua-15d48576ea737d51e579f101a870e37f62b81f22.tar.bz2
lua-15d48576ea737d51e579f101a870e37f62b81f22.zip
functions now may be declared with any "var" as a name;
therefore they do not have a "baptism" name. Changes in debug API to acomodate that.
Diffstat (limited to 'func.h')
-rw-r--r--func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/func.h b/func.h
index 56066a47..2723180f 100644
--- a/func.h
+++ b/func.h
@@ -2,6 +2,7 @@
2#define func_h 2#define func_h
3 3
4#include "types.h" 4#include "types.h"
5#include "lua.h"
5 6
6/* 7/*
7** Header para funcoes. 8** Header para funcoes.
@@ -13,12 +14,11 @@ typedef struct TFunc
13 int size; 14 int size;
14 Byte *code; 15 Byte *code;
15 int lineDefined; 16 int lineDefined;
16 char *name1; /* function or method name (or null if main) */
17 char *name2; /* object name (or null if not method) */
18 char *fileName; 17 char *fileName;
19} TFunc; 18} TFunc;
20 19
21Long luaI_funccollector (void); 20Long luaI_funccollector (void);
22void luaI_insertfunction (TFunc *f); 21void luaI_insertfunction (TFunc *f);
23 22
23
24#endif 24#endif