summaryrefslogtreecommitdiff
path: root/src/luac/luac.h
blob: ceb311b84751deb13c9ecd318e31448ff74902fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
** luac.h
** definitions for luac compiler
** $Id: luac.h,v 1.5 1996/03/08 21:41:47 lhf Exp $
*/

#include "inout.h"
#include "mem.h"
#include "opcode.h"
#include "table.h"
#include "undump.h"

#define VarStr(i)	(lua_table[i].varname->str)
#define VarLoc(i)	(lua_table[i].varname->varindex)
#define StrStr(i)	(lua_constant[i]->str)
#define StrLoc(i)	(lua_constant[i]->constindex)

extern Word lua_ntable;
extern Word lua_nconstant;
extern int lua_debug;

void DumpHeader(FILE* D);
void DumpFunction(TFunc* tf, FILE* D);
void PrintFunction(TFunc* tf);