diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-02 17:11:51 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-02 17:11:51 -0200 |
| commit | 72afb6debb981f0e7ae3bb0bc54cbf3c1ead88f2 (patch) | |
| tree | 90e31128def5232b115afc34c2f19c049e9b12a1 /lundump.h | |
| parent | b097076678a9ca637df9dae0089314acbb884dda (diff) | |
| download | lua-72afb6debb981f0e7ae3bb0bc54cbf3c1ead88f2.tar.gz lua-72afb6debb981f0e7ae3bb0bc54cbf3c1ead88f2.tar.bz2 lua-72afb6debb981f0e7ae3bb0bc54cbf3c1ead88f2.zip | |
modifications by lhf
Diffstat (limited to 'lundump.h')
| -rw-r--r-- | lundump.h | 22 |
1 files changed, 13 insertions, 9 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lundump.h,v 1.10 1999/08/16 20:52:00 roberto Exp roberto $ | 2 | ** $Id: lundump.h,v 1.17 1999/12/02 18:51:09 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 | */ |
| @@ -10,20 +10,24 @@ | |||
| 10 | #include "lobject.h" | 10 | #include "lobject.h" |
| 11 | #include "lzio.h" | 11 | #include "lzio.h" |
| 12 | 12 | ||
| 13 | TProtoFunc* luaU_undump1 (lua_State *L, ZIO* Z); /* load one chunk */ | 13 | /* load one chunk */ |
| 14 | void luaU_badconstant (lua_State *L, const char* s, int i, const TObject* o, TProtoFunc* tf); | 14 | TProtoFunc* luaU_undump1 (lua_State* L, ZIO* Z); |
| 15 | /* handle cases that cannot happen */ | 15 | |
| 16 | double luaU_str2d (lua_State *L, const char* b, const char* where); | 16 | /* handle cases that cannot happen */ |
| 17 | /* convert number from text */ | 17 | void luaU_badconstant (lua_State* L, const char* s, int i, |
| 18 | const TObject* o, const TProtoFunc* tf); | ||
| 19 | |||
| 20 | /* convert number from text */ | ||
| 21 | double luaU_str2d (lua_State* L, const char* b, const char* where); | ||
| 18 | 22 | ||
| 19 | /* definitions for headers of binary files */ | 23 | /* definitions for headers of binary files */ |
| 20 | #define VERSION 0x32 /* last format change was in 3.2 */ | 24 | #define VERSION 0x33 /* last format change was in 3.3 */ |
| 21 | #define VERSION0 0x32 /* last major change was in 3.2 */ | 25 | #define VERSION0 0x33 /* last major change was in 3.3 */ |
| 22 | #define ID_CHUNK 27 /* binary files start with ESC... */ | 26 | #define ID_CHUNK 27 /* binary files start with ESC... */ |
| 23 | #define SIGNATURE "Lua" /* ...followed by this signature */ | 27 | #define SIGNATURE "Lua" /* ...followed by this signature */ |
| 24 | 28 | ||
| 25 | /* formats for error messages */ | 29 | /* formats for error messages */ |
| 26 | #define SOURCE "<%s:%d>" | 30 | #define SOURCE "<%.255s:%d>" |
| 27 | #define IN " in %p " SOURCE | 31 | #define IN " in %p " SOURCE |
| 28 | #define INLOC tf,tf->source->str,tf->lineDefined | 32 | #define INLOC tf,tf->source->str,tf->lineDefined |
| 29 | 33 | ||
