This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: C++ cheaders=c (and c_compatability headers) vs cheaders=c-std
- From: Benjamin Kosnik <bkoz at constant dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 24 Sep 2002 12:55:16 -0500 (CDT)
- Subject: Re: C++ cheaders=c (and c_compatability headers) vs cheaders=c-std
cstdio
1) _All_ typedefs and prototypes declared in eg stdio.h are declared in
namespace std (and not in global) in the C-runtime header.
This is incorrect. Supposedly only C++ specified C names are in namespace
std.
2) _Only_ those [ISO C90] names that are explicitly listed for the headers
in ISO/IEC 1482 are declared in std. Non-ISO names go into global
namespace.
Right, except for the last part. Non-C++-approved names aren't in std,
and aren't in the global namespace. It is implementation defined where they go, as far
as I can tell.
-benjamin