1996-03-09 00:43:21 +03:00
|
|
|
/*
|
|
|
|
** undump.h
|
|
|
|
** definitions for lua decompiler
|
1996-11-14 14:44:34 +03:00
|
|
|
** $Id: undump.h,v 1.2 1996/03/11 21:59:41 lhf Exp lhf $
|
1996-03-09 00:43:21 +03:00
|
|
|
*/
|
|
|
|
|
1996-03-12 00:59:41 +03:00
|
|
|
#include "func.h"
|
1996-03-09 00:43:21 +03: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"
|
1996-11-14 14:44:34 +03:00
|
|
|
#define VERSION 0x25 /* 2.5 */
|
1996-03-09 00:43:21 +03:00
|
|
|
#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 */
|
1996-03-12 00:59:41 +03:00
|
|
|
int luaI_undump(FILE* D); /* load all chunks */
|