[Zlib-devel] zlib 1.2.0.1 available for testing
Cosmin Truta
cosmin at cs.toronto.edu
Sat Mar 22 16:15:02 EST 2003
On Sat, 22 Mar 2003, Mark Adler wrote:
> On Wednesday, March 19, 2003, at 07:53 PM, Cosmin Truta wrote:
> > All symbols starting with _Capital or __anything are reserved for
> > compilers and library implementations.
>
> Um, isn't that what this is?
Sorry, I meant "standard/system library implementations", like
libc/stdio, iostream, etc. If such an implementation will need to use
global symbols in headers, for any private reasons, those symbols must
not clash with any user library or other application.
In particular, Standard C++ library implementations are heavily using
private symbols starting with _Capital in their headers, to implement
templates, and any macro that may clash with such a symbol will cause
damage.
I admit it is unlikely that a standard library or compiler will ever use
_ZLIB_H for their own purpose; we should, however, stick to the standard
requirements, and anyway I we won't have problems using ZLIB_H instead
of _ZLIB_H (unless, of course, we class with other unrelated header file
having the same name, by accident - but _ZLIB_H is not any better than
ZLIB_H in this case).
Cosmin
More information about the Zlib-devel
mailing list