diff options
author | Lua Team <team@lua.org> | 1996-05-14 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 1996-05-14 12:00:00 +0000 |
commit | 721542976ebc89f2f8d17d19be7e4426570b69be (patch) | |
tree | 0c79a45c63aa89d6e4b8ac80931e46d74a72f8cb /src/undump.h | |
parent | 71754d2f6423fb9b6e87658e58bafc5470d53f65 (diff) | |
download | lua-github-2.4.tar.gz |
Lua 2.42.4
Diffstat (limited to 'src/undump.h')
-rw-r--r-- | src/undump.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/undump.h b/src/undump.h new file mode 100644 index 00000000..109634ae --- /dev/null +++ b/src/undump.h @@ -0,0 +1,23 @@ +/* +** undump.h +** definitions for lua decompiler +** $Id: undump.h,v 1.2 1996/03/11 21:59:41 lhf Exp $ +*/ + +#include "func.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 */ +int luaI_undump(FILE* D); /* load all chunks */ |