diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-03-28 10:11:06 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-03-28 10:11:06 +0000 |
commit | fabb807a8ff9d472619bd2ae244ae983ff35b9cc (patch) | |
tree | a0e277e45a5ed1051413eae99dc66700aef38642 /Build/source/texk | |
parent | 4e7f1a8e0898bd9c282a677df901c92ef01808bb (diff) |
Revert the introduction of zzip_dir_refcount() from r36651
git-svn-id: svn://tug.org/texlive/trunk@36657 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luazip/src/luazip.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luazip/src/luazip.c b/Build/source/texk/web2c/luatexdir/luazip/src/luazip.c index a7248ae4759..eb731349f0d 100644 --- a/Build/source/texk/web2c/luatexdir/luazip/src/luazip.c +++ b/Build/source/texk/web2c/luatexdir/luazip/src/luazip.c @@ -97,22 +97,15 @@ static int zip_open (lua_State *L) { return 1; } - static int zip_close (lua_State *L) { ZZIP_DIR* f = tofile(L, 1); - if (zzip_dir_refcount(f) != 0) + if (zzip_dir_close(f) == 0) { - lua_pushboolean(L, 0); - } else { - if (zzip_dir_close(f) == 0) - { - *(ZZIP_DIR**)lua_touserdata(L, 1) = NULL; /* mark file as close */ - lua_pushboolean(L, 1); - } - else { - lua_pushboolean(L, 0); - } + *(ZZIP_DIR**)lua_touserdata(L, 1) = NULL; /* mark file as close */ + lua_pushboolean(L, 1); } + else + lua_pushboolean(L, 0); return 1; } |