aboutsummaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/lundump.h b/lundump.h
index ba7dd82b..267326e1 100644
--- a/lundump.h
+++ b/lundump.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.h,v 1.20 2001/02/23 17:17:25 roberto Exp roberto $ 2** $Id: lundump.h,v 1.23 2001/06/28 13:55:17 lhf Exp $
3** load pre-compiled Lua chunks 3** load pre-compiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -14,18 +14,14 @@
14Proto* luaU_undump (lua_State* L, ZIO* Z); 14Proto* luaU_undump (lua_State* L, ZIO* Z);
15 15
16/* find byte order */ 16/* find byte order */
17int luaU_endianess (void); 17int luaU_endianness (void);
18 18
19/* definitions for headers of binary files */ 19/* definitions for headers of binary files */
20#define VERSION 0x40 /* last format change was in 4.0 */ 20#define VERSION 0x41 /* last format change was in 4.1 */
21#define VERSION0 0x40 /* last major change was in 4.0 */ 21#define VERSION0 0x41 /* last major change was in 4.1 */
22#define ID_CHUNK 27 /* binary files start with ESC... */ 22#define ID_CHUNK 27 /* binary files start with ESC... */
23#define SIGNATURE "Lua" /* ...followed by this signature */ 23#define SIGNATURE "Lua" /* ...followed by this signature */
24 24
25/* formats for error messages */
26#define SOURCE tf->lineDefined,tf->source->str
27#define IN tf,SOURCE
28
29/* a multiple of PI for testing native format */ 25/* a multiple of PI for testing native format */
30/* multiplying by 1E8 gives non-trivial integer values */ 26/* multiplying by 1E8 gives non-trivial integer values */
31#define TEST_NUMBER 3.14159265358979323846E8 27#define TEST_NUMBER 3.14159265358979323846E8