[Zlib-devel] Allow read-only data as input

Mike Frysinger vapier at gentoo.org
Mon Mar 28 22:57:16 EDT 2011


On Mon, Mar 28, 2011 at 9:52 PM, Jonathan Nieder wrote:
> Mike Frysinger wrote:
>> Mark Adler wrote:
>>> What if we added a ZLIB_CONST #define that, if defined, would add the
>>> const's in zlib.h where appropriate?
>
> Sounds excellent to me, for what it's worth.
>
>> what if we negated the logic so that people would get const by default
>> ?  so people could define ZLIB_NO_CONST to avoid transitional logic.
>
> That would needlessly cause existing programs that "free(s.next_in);"
> to break without warning.

put it into NEWS and then people are warned
-mike




More information about the Zlib-devel mailing list