]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove zng_gzgetc_ function from zlib-ng native API.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 11 Feb 2022 12:49:28 +0000 (13:49 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 3 Jun 2022 08:21:01 +0000 (10:21 +0200)
It exists in zlib for backwards compatibility, but has never been
documented/advertised for use in zlib-ngs native API.

gzread.c.in
zlib-ng.h.in
zlib-ng.map

index 3e1dc1d1323c8a48db725cbb930ab565030d3b5a..f17a5f8880109da0c55ea0dae746aa0b7dcf9761 100644 (file)
@@ -432,9 +432,11 @@ int Z_EXPORT PREFIX(gzgetc)(gzFile file) {
     return gz_read(state, buf, 1) < 1 ? -1 : buf[0];
 }
 
+#ifdef ZLIB_COMPAT
 int Z_EXPORT PREFIX(gzgetc_)(gzFile file) {
     return PREFIX(gzgetc)(file);
 }
+#endif
 
 /* -- see zlib.h -- */
 int Z_EXPORT PREFIX(gzungetc)(int c, gzFile file) {
index c46f776ae65cf75fa47d9ca4486037146992b1e1..38a5225f7bb40b70a8a8a4ac27db57a714779704 100644 (file)
@@ -1791,7 +1791,6 @@ struct gzFile_s {
     unsigned char *next;
     z_off64_t pos;
 };
-Z_EXTERN Z_EXPORT int32_t zng_gzgetc_(gzFile file);  /* backward compatibility */
 #  define @ZLIB_SYMBOL_PREFIX@zng_gzgetc(g) ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (@ZLIB_SYMBOL_PREFIX@zng_gzgetc)(g))
 
 #endif /* WITH_GZFILEOP */
index 5ac114731c1fce401ea42228636be2bc9b9c21ad..aa29a54ef67d419f4b4f93854cc0506c354a63c8 100644 (file)
@@ -93,7 +93,6 @@ ZLIB_NG_GZ_2.0.0 {
     zng_gzfread;
     zng_gzfwrite;
     zng_gzgetc;
-    zng_gzgetc_;
     zng_gzgets;
     zng_gzoffset;
     zng_gzoffset64;