diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-26 12:21:56 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-26 12:21:56 -0200 |
commit | 15d48576ea737d51e579f101a870e37f62b81f22 (patch) | |
tree | ed2390188cfb5304d366696262ccda593f3e8589 /func.h | |
parent | 39b071f7b13e6ed6eff4a0f0471d2450a9c48084 (diff) | |
download | lua-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
21 | Long luaI_funccollector (void); | 20 | Long luaI_funccollector (void); |
22 | void luaI_insertfunction (TFunc *f); | 21 | void luaI_insertfunction (TFunc *f); |
23 | 22 | ||
23 | |||
24 | #endif | 24 | #endif |