[Zlib-devel] zlib 1.2.6 released

jbowler at acm.org jbowler at acm.org
Fri Feb 10 11:56:22 EST 2012


From: Jan Nijtmans
>One more suggestion for zlib 1.2.7. Currently, gzgetc is a macro around the function gzgetc_,
>which is actually the same as gzgetc. It is possible to change the macro, such that it wraps
>around the original gzgetc function, which makes the gzgetc_ function obsolete.

Libpng 1.5 does this for macros/functions that read 16 and 32-bit quantities from a buffer.  The (function-name)(args) form is only used in the implementation; the header file just contains the macro definition preceded by the function definition (as in 1.2.6), however I'm not aware of any problems with this C fragment:

png_uint_32 (PNGAPI
png_get_uint_32)(png_const_bytep buf)
{

"png_get_uint_32(buf)" is, by default, declared as a macro in the public (installed) header file.  It is, however, possible to disable it by default when building libpng, so it is conceivable that there are systems out there where libpng 1.5 only builds with the macro disabled; we wouldn't necessarily have received a report about this.

John Bowler <jbowler at acm.org>






More information about the Zlib-devel mailing list