Imported from ../lua-3.0.tar.gz.
[lua.git] / src / func.h
blobc79bbb72d2d92aa1bf92c1ec5578e5b4dcce1fb5
1 /*
2 ** $Id: func.h,v 1.9 1997/05/14 18:38:29 roberto Exp $
3 */
5 #ifndef func_h
6 #define func_h
8 #include "types.h"
9 #include "lua.h"
10 #include "tree.h"
12 typedef struct LocVar
14 TaggedString *varname; /* NULL signals end of scope */
15 int line;
16 } LocVar;
20 ** Function Headers
22 typedef struct TFunc
24 struct TFunc *next;
25 int marked;
26 int size;
27 Byte *code;
28 int lineDefined;
29 char *fileName;
30 LocVar *locvars;
31 } TFunc;
33 TFunc *luaI_funccollector (long *cont);
34 void luaI_funcfree (TFunc *l);
35 void luaI_insertfunction (TFunc *f);
37 void luaI_initTFunc (TFunc *f);
38 void luaI_freefunc (TFunc *f);
40 void luaI_registerlocalvar (TaggedString *varname, int line);
41 void luaI_unregisterlocalvar (int line);
42 void luaI_closelocalvars (TFunc *func);
43 char *luaI_getlocalname (TFunc *func, int local_number, int line);
45 #endif