diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-25 16:51:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-25 16:51:54 -0300 |
commit | 9fcc48517659c72de43bece515fdd5cea88c07f8 (patch) | |
tree | ad065ea1c7e2c0f6781e366e9a2e95b4cadb1780 /lundump.c | |
parent | 64066359dda2a0920d307e901185faf78cc32b97 (diff) | |
download | lua-9fcc48517659c72de43bece515fdd5cea88c07f8.tar.gz lua-9fcc48517659c72de43bece515fdd5cea88c07f8.tar.bz2 lua-9fcc48517659c72de43bece515fdd5cea88c07f8.zip |
zio does not keep "source" name (nobody uses it)
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]) |