1996-03-09 05:43:21 +08:00
|
|
|
/*
|
|
|
|
** undump.h
|
|
|
|
** definitions for lua decompiler
|
1997-06-18 02:19:17 +08:00
|
|
|
** $Id: undump.h,v 1.5 1997/06/16 16:50:22 roberto Exp roberto $
|
1996-03-09 05:43:21 +08:00
|
|
|
*/
|
|
|
|
|
1997-06-18 02:19:17 +08:00
|
|
|
#ifndef undump_h
|
|
|
|
#define undump_h
|
|
|
|
|
1996-03-12 05:59:41 +08:00
|
|
|
#include "func.h"
|
1997-06-17 00:50:22 +08:00
|
|
|
#include "zio.h"
|
1996-03-09 05:43:21 +08:00
|
|
|
|
|
|
|
#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"
|
1997-04-14 20:12:40 +08:00
|
|
|
#define VERSION 0x25 /* last format change was in 2.5 */
|
1996-03-09 05:43:21 +08:00
|
|
|
#define TEST_WORD 0x1234 /* a word for testing byte ordering */
|
|
|
|
#define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */
|
|
|
|
|
1997-06-17 00:50:22 +08:00
|
|
|
|
1997-06-18 02:19:17 +08:00
|
|
|
TFunc* luaI_undump1(ZIO* Z);
|
1997-06-17 00:50:22 +08:00
|
|
|
int luaI_undump(ZIO* Z); /* load all chunks */
|
1997-06-18 02:19:17 +08:00
|
|
|
|
|
|
|
#endif
|