diff options
| author | Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> | 1996-03-08 18:43:21 -0300 |
|---|---|---|
| committer | Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> | 1996-03-08 18:43:21 -0300 |
| commit | bb26efbbec457d43560d979af3255385d0db8226 (patch) | |
| tree | 1b944157c87aa7e3cbccf3df1cb5364209b4c814 | |
| parent | 5c0e5fd36d87e91ec65af3d3b791e64941e13b86 (diff) | |
| download | lua-bb26efbbec457d43560d979af3255385d0db8226.tar.gz lua-bb26efbbec457d43560d979af3255385d0db8226.tar.bz2 lua-bb26efbbec457d43560d979af3255385d0db8226.zip | |
definitions for lua decompiler
undump is now a module
| -rw-r--r-- | undump.h | 26 |
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 | |||
| 25 | TFunc* luaI_undump1(FILE* D); /* load one chunk */ | ||
| 26 | void luaI_undump(FILE* D); /* load all chunks */ | ||
