summaryrefslogtreecommitdiff
path: root/undump.h
blob: bcd8524e0651726dbf80020c58063255ba27405f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
** undump.h
** definitions for lua decompiler
** $Id: undump.h,v 1.2 1996/03/11 21:59:41 lhf Exp lhf $
*/

#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		0x25		/* 2.5 */
#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 */