This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/1051] New: __BEGIN_NAMESPACE_STD / __END_NAMESPACE_C99
- From: "suckfish at ihug dot co dot nz" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 6 Jul 2005 05:44:36 -0000
- Subject: [Bug libc/1051] New: __BEGIN_NAMESPACE_STD / __END_NAMESPACE_C99
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
In stdlib.h one occurrence of __BEGIN_NAMESPACE_STD before strtol/strtoul is
paired with __END_NAMESPACE_C99.
I assume that the intention was for it to be paired with __END_NAMESPACE_STD
even if it makes no difference in practice.
Also, there is an apparently extraneous __END_NAMESPACE_C99 in wctype.h
Patch below.
diff -u /usr/include/stdlib.h ./stdlib.h
--- /usr/include/stdlib.h 2005-05-30 23:11:20.000000000 +1200
+++ ./stdlib.h 2005-07-06 11:47:41.000000000 +1200
@@ -188,7 +188,7 @@
extern unsigned long int strtoul (__const char *__restrict __nptr,
char **__restrict __endptr, int __base)
__THROW __nonnull ((1)) __wur;
-__END_NAMESPACE_C99
+__END_NAMESPACE_STD
#if defined __GLIBC_HAVE_LONG_LONG && defined __USE_BSD
/* Convert a string to a quadword integer. */
diff -u /usr/include/wctype.h ./wctype.h
--- /usr/include/wctype.h 2005-05-30 23:11:43.000000000 +1200
+++ ./wctype.h 2005-07-06 11:50:42.000000000 +1200
@@ -44,7 +44,6 @@
# ifdef __USE_ISOC99
__USING_NAMESPACE_C99(wint_t)
# endif
-__END_NAMESPACE_C99
# endif
/* Constant expression of type `wint_t' whose value does not correspond
--
Summary: __BEGIN_NAMESPACE_STD / __END_NAMESPACE_C99
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: suckfish at ihug dot co dot nz
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1051
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.