aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--undump.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/undump.h b/undump.h
new file mode 100644
index 00000000..ce418692
--- /dev/null
+++ b/undump.h
@@ -0,0 +1,26 @@
1/*
2** undump.h
3** definitions for lua decompiler
4** $Id$
5*/
6
7#include "inout.h"
8#include "mem.h"
9#include "opcode.h"
10#include "table.h"
11
12#define IsMain(f) (f->lineDefined==0)
13
14/* definitions for chunk headers */
15
16#define ID_CHUNK 27 /* ESC */
17#define ID_FUN 'F'
18#define ID_VAR 'V'
19#define ID_STR 'S'
20#define SIGNATURE "Lua"
21#define VERSION 0x23 /* 2.3 */
22#define TEST_WORD 0x1234 /* a word for testing byte ordering */
23#define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */
24
25TFunc* luaI_undump1(FILE* D); /* load one chunk */
26void luaI_undump(FILE* D); /* load all chunks */