Imported from ../lua-3.0.tar.gz.
[lua.git] / src / undump.h
blob393735832c3327858d76af1fd803fe8d38c7f781
1 /*
2 ** undump.h
3 ** definitions for lua decompiler
4 ** $Id: undump.h,v 1.6 1997/06/17 18:19:17 roberto Exp $
5 */
7 #ifndef undump_h
8 #define undump_h
10 #include "func.h"
11 #include "zio.h"
13 #define IsMain(f) (f->lineDefined==0)
15 /* definitions for chunk headers */
17 #define ID_CHUNK 27 /* ESC */
18 #define ID_FUN 'F'
19 #define ID_VAR 'V'
20 #define ID_STR 'S'
21 #define SIGNATURE "Lua"
22 #define VERSION 0x25 /* last format change was in 2.5 */
23 #define TEST_WORD 0x1234 /* a word for testing byte ordering */
24 #define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */
27 TFunc* luaI_undump1(ZIO* Z);
28 int luaI_undump(ZIO* Z); /* load all chunks */
30 #endif