From bb26efbbec457d43560d979af3255385d0db8226 Mon Sep 17 00:00:00 2001 From: Luiz Henrique de Figueiredo Date: Fri, 8 Mar 1996 18:43:21 -0300 Subject: definitions for lua decompiler undump is now a module --- undump.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 undump.h diff --git a/undump.h b/undump.h new file mode 100644 index 00000000..ce418692 --- /dev/null +++ b/undump.h @@ -0,0 +1,26 @@ +/* +** undump.h +** definitions for lua decompiler +** $Id$ +*/ + +#include "inout.h" +#include "mem.h" +#include "opcode.h" +#include "table.h" + +#define IsMain(f) (f->lineDefined==0) + +/* definitions for chunk headers */ + +#define ID_CHUNK 27 /* ESC */ +#define ID_FUN 'F' +#define ID_VAR 'V' +#define ID_STR 'S' +#define SIGNATURE "Lua" +#define VERSION 0x23 /* 2.3 */ +#define TEST_WORD 0x1234 /* a word for testing byte ordering */ +#define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */ + +TFunc* luaI_undump1(FILE* D); /* load one chunk */ +void luaI_undump(FILE* D); /* load all chunks */ -- cgit v1.2.3-55-g6feb