C++ cheaders=c (and c_compatability headers) vs cheaders=c-std
Benjamin Kosnik
bkoz@constant.com
Tue Sep 24 10:58:00 GMT 2002
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
More information about the Libstdc++
mailing list