Skip to content

Commit

Permalink
Fix wrong names and invalid entries in zlib.map and zlib-ng.map
Browse files Browse the repository at this point in the history
  • Loading branch information
Dead2 committed Feb 9, 2023
1 parent cf5bb01 commit 0ba881e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
17 changes: 7 additions & 10 deletions zlib-ng.map
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ ZLIB_NG_2.1.0 {
zng_inflateBackInit;
zng_inflateInit;
zng_inflateInit2;
zlibng_version;
};

ZLIB_NG_2.0.0 {
global:
zng_adler32;
zng_adler32_c;
zng_adler32_combine;
zng_adler32_z;
zng_compress;
Expand Down Expand Up @@ -64,17 +64,14 @@ ZLIB_NG_2.0.0 {
zng_uncompress2;
zng_zError;
zng_zlibCompileFlags;
zng_zlibng_string;
zng_version;
zng_vstring;
local:
zng_deflate_copyright;
zng_inflate_copyright;
zng_inflate_fast;
zng_inflate_table;
zng_zcalloc;
zng_zcfree;
zng_z_errmsg;
zng_gz_error;
gz_error;
_*;
};

Expand All @@ -95,20 +92,20 @@ ZLIB_NG_GZ_2.0.0 {
zng_gzgetc;
zng_gzgets;
zng_gzoffset;
zng_gzoffset64;
zng_gzopen;
zng_gzopen64;
zng_gzprintf;
zng_gzputc;
zng_gzputs;
zng_gzread;
zng_gzrewind;
zng_gzseek;
zng_gzseek64;
zng_gzsetparams;
zng_gztell;
zng_gztell64;
zng_gzungetc;
zng_gzvprintf;
zng_gzwrite;
};

FAIL {
local: *;
};
2 changes: 0 additions & 2 deletions zlib.map
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ ZLIB_1.2.0 {
local:
deflate_copyright;
inflate_copyright;
inflate_fast;
inflate_table;
zcalloc;
zcfree;
z_errmsg;
Expand Down
6 changes: 3 additions & 3 deletions zutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ z_const char * const PREFIX(z_errmsg)[10] = {
(z_const char *)""
};

const char PREFIX3(vstring)[] =
" zlib-ng 2.1.0.devel forked from zlib";

#ifdef ZLIB_COMPAT
const char * Z_EXPORT zlibVersion(void) {
return ZLIB_VERSION;
}
#else
const char zlibng_string[] =
" zlib-ng 2.1.0.devel forked from zlib";

const char * Z_EXPORT zlibng_version(void) {
return ZLIBNG_VERSION;
}
Expand Down

0 comments on commit 0ba881e

Please sign in to comment.