Imported from ../lua-3.0.tar.gz.
[lua.git] / src / luac / luac.h
blob815824cade4e0c5727447a5e07007ce16f4eed39
1 /*
2 ** luac.h
3 ** definitions for luac compiler
4 ** $Id: luac.h,v 1.8 1997/06/19 17:32:08 lhf Exp $
5 */
7 #include "inout.h"
8 #include "luamem.h"
9 #include "opcode.h"
10 #include "table.h"
11 #include "undump.h"
13 #define VarStr(i) (lua_table[i].varname->str)
14 #define VarLoc(i) (lua_table[i].varname->u.s.varindex)
15 #define StrStr(i) (lua_constant[i]->str)
16 #define StrLoc(i) (lua_constant[i]->u.s.constindex)
18 extern Word lua_ntable;
19 extern Word lua_nconstant;
20 extern int lua_debug;
22 void LinkFunctions(TFunc* tf);
23 void PrintFunction(TFunc* tf, TFunc* Main);
24 void DumpHeader(FILE* D);
25 void DumpFunction(TFunc* tf, FILE* D);