[Zlib-devel] Re: ABI compatibility of zlib 1.0.x, 1.1.x, and 1.2.x
Cosmin Truta
cosmin at cs.toronto.edu
Fri Dec 5 22:12:10 EST 2003
On Fri, 5 Dec 2003, Jeff Johnson wrote:
> Cosmin Truta wrote:
>
> >The exports that aren't visible from "zlib.h" (like _tr_tally and such),
> >aren't that much a problem. If the attribute magic will add a big bunch
> >of #ifdefs, then I'd prefer to keep the headers/source clean and write a
> >simple "don't use" statement in the docs instead.
> >
> >
>
> Not #ifdef's, additional
> attribute(""hidden")
> markers that permit linking for a library, but do not expose the symbols
> with -lzlib is used.
I see. Well, these leaked exports have already clash-proof names, and
they handle tasks sophisticated enough, such that it's safe to claim
that no user will tamper with their source code access, without knowing
what s/he's doing.
On the other hand, you need black macro magic to make this attribute
thing portable. Thanks for your intention, Jeff, but my suggestion is to
leave this alone. I see it as a problem whose solution is even more
problematic.
Best regards,
Cosmin
More information about the Zlib-devel
mailing list