From 28aff1e0215254537e412e6f8dea0b8cb7a9c04b Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 28 Mar 2015 00:12:48 +0000 Subject: libs/zziplib: Sync with luatex trunk git-svn-id: svn://tug.org/texlive/trunk@36651 c570f23f-e606-0410-a88d-b1316a301751 --- .../libs/zziplib/zziplib-0.13.62-PATCHES/ChangeLog | 4 ++++ .../zziplib-0.13.62-PATCHES/patch-04-refcount | 21 +++++++++++++++++++++ .../source/libs/zziplib/zziplib-0.13.62/zzip/zip.c | 11 +++++++++++ 3 files changed, 36 insertions(+) create mode 100644 Build/source/libs/zziplib/zziplib-0.13.62-PATCHES/patch-04-refcount (limited to 'Build/source/libs/zziplib') diff --git a/Build/source/libs/zziplib/zziplib-0.13.62-PATCHES/ChangeLog b/Build/source/libs/zziplib/zziplib-0.13.62-PATCHES/ChangeLog index 934f50c32e6..3a5008b500c 100644 --- a/Build/source/libs/zziplib/zziplib-0.13.62-PATCHES/ChangeLog +++ b/Build/source/libs/zziplib/zziplib-0.13.62-PATCHES/ChangeLog @@ -1,3 +1,7 @@ +2015-03-27 Luigi Scarso + + * patch-04-refcount: Add zzip_dir_refcount + 2014-07-15 Peter Breitenlohner * patch-03-w64-ptr: Avoid WIN64 warning due to different size. diff --git a/Build/source/libs/zziplib/zziplib-0.13.62-PATCHES/patch-04-refcount b/Build/source/libs/zziplib/zziplib-0.13.62-PATCHES/patch-04-refcount new file mode 100644 index 00000000000..732c27e07c0 --- /dev/null +++ b/Build/source/libs/zziplib/zziplib-0.13.62-PATCHES/patch-04-refcount @@ -0,0 +1,21 @@ +diff -ur zziplib-0.13.62.orig/zzip/zip.c zziplib-0.13.62/zzip/zip.c +--- zziplib-0.13.62.orig/zzip/zip.c 2015-03-27 21:16:01.101333013 +0100 ++++ zziplib-0.13.62/zzip/zip.c 2015-03-27 21:19:06.037340680 +0100 +@@ -628,6 +628,17 @@ + return zzip_dir_alloc_ext_io(fileext, 0); + } + ++ ++ ++/** ++ * returns the refcount ++ */ ++int ++zzip_dir_refcount(ZZIP_DIR * dir) ++{ ++ return dir->refcount; ++} ++ + /** + * will free the zzip_dir handle unless there are still + * zzip_files attached (that may use its cache buffer). diff --git a/Build/source/libs/zziplib/zziplib-0.13.62/zzip/zip.c b/Build/source/libs/zziplib/zziplib-0.13.62/zzip/zip.c index a4b06b47189..dac9aba4f90 100644 --- a/Build/source/libs/zziplib/zziplib-0.13.62/zzip/zip.c +++ b/Build/source/libs/zziplib/zziplib-0.13.62/zzip/zip.c @@ -628,6 +628,17 @@ zzip_dir_alloc(zzip_strings_t * fileext) return zzip_dir_alloc_ext_io(fileext, 0); } + + +/** + * returns the refcount + */ +int +zzip_dir_refcount(ZZIP_DIR * dir) +{ + return dir->refcount; +} + /** * will free the zzip_dir handle unless there are still * zzip_files attached (that may use its cache buffer). -- cgit v1.2.3