extern const char* operators[];

extern int priorities[];

extern int string_encoding;

typedef struct Inst_ Inst;
struct Inst_ {
	OpCode op;
	int a;
	int b;
	int c;
	int bx;
	int sbx;
#if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503
	int ax;
#endif
};

Inst extractInstruction(Instruction i);
Instruction assembleInstruction(Inst inst);

void InitOperators();

int getEncoding(const char* src);

char* DecompileString(const TValue* o);

char* DecompileConstant(const Proto* f, int i);

#endif // #ifndef LUADEC_PROTO_H
