aboutsummaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-04-25 13:44:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-04-25 13:44:31 -0300
commit0e8855e171ffa957d08d1a1df707d917a029b39f (patch)
tree569cdbd8467290247f642f07fc496e31e66be302 /lundump.h
parent2ae9c856cfd8db834e023ee0b00601d02df9b388 (diff)
downloadlua-0e8855e171ffa957d08d1a1df707d917a029b39f.tar.gz
lua-0e8855e171ffa957d08d1a1df707d917a029b39f.tar.bz2
lua-0e8855e171ffa957d08d1a1df707d917a029b39f.zip
final version (by lhf)
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/lundump.h b/lundump.h
index b3171a80..5c27ae07 100644
--- a/lundump.h
+++ b/lundump.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.h,v 1.13 2000/03/03 14:58:26 roberto Exp roberto $ 2** $Id: lundump.h,v 1.19 2000/04/24 17:32:29 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*/
@@ -13,16 +13,12 @@
13/* load one chunk */ 13/* load one chunk */
14Proto* luaU_undump1 (lua_State* L, ZIO* Z); 14Proto* luaU_undump1 (lua_State* L, ZIO* Z);
15 15
16/* handle cases that cannot happen */
17void luaU_badconstant (lua_State* L, const char* s, int i,
18 const TObject* o, const Proto* tf);
19
20/* convert number from text */ 16/* convert number from text */
21double luaU_str2d (lua_State* L, const char* b, const char* where); 17double luaU_str2d (lua_State* L, const char* b, const char* where);
22 18
23/* definitions for headers of binary files */ 19/* definitions for headers of binary files */
24#define VERSION 0x33 /* last format change was in 3.3 */ 20#define VERSION 0x40 /* last format change was in 4.0 */
25#define VERSION0 0x33 /* last major change was in 3.3 */ 21#define VERSION0 0x40 /* last major change was in 4.0 */
26#define ID_CHUNK 27 /* binary files start with ESC... */ 22#define ID_CHUNK 27 /* binary files start with ESC... */
27#define SIGNATURE "Lua" /* ...followed by this signature */ 23#define SIGNATURE "Lua" /* ...followed by this signature */
28 24
@@ -41,4 +37,7 @@ double luaU_str2d (lua_State* L, const char* b, const char* where);
41/* multiplying by 1E8 gives non-trivial integer values */ 37/* multiplying by 1E8 gives non-trivial integer values */
42#define TEST_NUMBER 3.14159265358979323846E8 38#define TEST_NUMBER 3.14159265358979323846E8
43 39
40/* something for testing byte order in instructions */
41#define TEST_CODE 0x01020304
42
44#endif 43#endif