diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-25 13:44:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-25 13:44:31 -0300 |
commit | 0e8855e171ffa957d08d1a1df707d917a029b39f (patch) | |
tree | 569cdbd8467290247f642f07fc496e31e66be302 /lundump.h | |
parent | 2ae9c856cfd8db834e023ee0b00601d02df9b388 (diff) | |
download | lua-0e8855e171ffa957d08d1a1df707d917a029b39f.tar.gz lua-0e8855e171ffa957d08d1a1df707d917a029b39f.tar.bz2 lua-0e8855e171ffa957d08d1a1df707d917a029b39f.zip |
final version (by lhf)
Diffstat (limited to 'lundump.h')
-rw-r--r-- | lundump.h | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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 */ |
14 | Proto* luaU_undump1 (lua_State* L, ZIO* Z); | 14 | Proto* luaU_undump1 (lua_State* L, ZIO* Z); |
15 | 15 | ||
16 | /* handle cases that cannot happen */ | ||
17 | void 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 */ |
21 | double luaU_str2d (lua_State* L, const char* b, const char* where); | 17 | double 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 |