diff options
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 1.49 2003/04/07 20:34:20 lhf Exp lhf $ | 2 | ** $Id: lundump.c,v 1.62 2003/08/15 13:48:53 roberto Exp roberto $ |
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 | */ |
@@ -256,10 +256,9 @@ static Proto* LoadChunk (LoadState* S) | |||
256 | /* | 256 | /* |
257 | ** load precompiled chunk | 257 | ** load precompiled chunk |
258 | */ | 258 | */ |
259 | Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff) | 259 | Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char *s) |
260 | { | 260 | { |
261 | LoadState S; | 261 | LoadState S; |
262 | const char* s=zname(Z); | ||
263 | if (*s=='@' || *s=='=') | 262 | if (*s=='@' || *s=='=') |
264 | S.name=s+1; | 263 | S.name=s+1; |
265 | else if (*s==LUA_SIGNATURE[0]) | 264 | else if (*s==LUA_SIGNATURE[0]) |