diff options
| -rw-r--r-- | ldump.c | 4 | ||||
| -rw-r--r-- | lundump.c | 4 |
2 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldump.c,v 1.13 2005/11/01 17:04:55 lhf Exp lhf $ | 2 | ** $Id: ldump.c,v 1.15 2006/02/16 15:53:49 lhf Exp $ |
| 3 | ** save precompiled Lua chunks | 3 | ** save precompiled Lua chunks |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -128,7 +128,7 @@ static void DumpDebug(const Proto* f, DumpState* D) | |||
| 128 | 128 | ||
| 129 | static void DumpFunction(const Proto* f, const TString* p, DumpState* D) | 129 | static void DumpFunction(const Proto* f, const TString* p, DumpState* D) |
| 130 | { | 130 | { |
| 131 | DumpString((f->source==p) ? NULL : f->source,D); | 131 | DumpString((f->source==p || D->strip) ? NULL : f->source,D); |
| 132 | DumpInt(f->linedefined,D); | 132 | DumpInt(f->linedefined,D); |
| 133 | DumpInt(f->lastlinedefined,D); | 133 | DumpInt(f->lastlinedefined,D); |
| 134 | DumpChar(f->nups,D); | 134 | DumpChar(f->nups,D); |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lundump.c,v 1.58 2005/09/02 01:54:47 lhf Exp lhf $ | 2 | ** $Id: lundump.c,v 1.60 2006/02/16 15:53:49 lhf Exp $ |
| 3 | ** load precompiled Lua chunks | 3 | ** load precompiled Lua chunks |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -201,7 +201,7 @@ Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name) | |||
| 201 | S.Z=Z; | 201 | S.Z=Z; |
| 202 | S.b=buff; | 202 | S.b=buff; |
| 203 | LoadHeader(&S); | 203 | LoadHeader(&S); |
| 204 | return LoadFunction(&S,NULL); | 204 | return LoadFunction(&S,luaS_newliteral(L,"=?")); |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | /* | 207 | /* |
