aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-08-25 16:51:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-08-25 16:51:54 -0300
commit9fcc48517659c72de43bece515fdd5cea88c07f8 (patch)
treead065ea1c7e2c0f6781e366e9a2e95b4cadb1780 /lundump.c
parent64066359dda2a0920d307e901185faf78cc32b97 (diff)
downloadlua-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lundump.c b/lundump.c
index a4a9bc26..30f6f904 100644
--- a/lundump.c
+++ b/lundump.c
@@ -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*/
259Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff) 259Proto* 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])