* include/features.h (__USE_ISOC95): New define.
authorUlrich Drepper <drepper@redhat.com>
Thu, 19 Jul 2007 17:28:06 +0000 (17:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 19 Jul 2007 17:28:06 +0000 (17:28 +0000)
* wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
for -std=iso9899:199409.
* CONFORMANCE: Remove comments about unsupported AMD1.

CONFORMANCE
ChangeLog
include/features.h
localedata/ChangeLog
nptl/ChangeLog
wcsmbs/wchar.h

index 92ab7b7f52103661b52d5cbd99cf9e9b5170ef0e..a534b3b2610ca04dc89ad33663665f54a88296d4 100644 (file)
@@ -85,11 +85,9 @@ of the C standard (as indicated by __STDC_VERSION__):
 GCC options            Standard version
 -ansi                  ISO/IEC 9899:1990
 -std=c89               ISO/IEC 9899:1990
--std=iso9899:199409    ISO/IEC 9899:1990 as amended by Amd.1:1995 *
+-std=iso9899:199409    ISO/IEC 9899:1990 as amended by Amd.1:1995
 -std=c99               ISO/IEC 9899:1999
 
-* glibc does not support this standard version.
-
 (Note that -std=c99 is not available in GCC 2.95.2, and that no
 version of GCC presently existing implements the full C99 standard.)
 
@@ -183,8 +181,3 @@ Note that the _t suffix is reserved by POSIX, but not by pure ISO C.
 Also, the Single Unix Specification generally requires more types to
 be included in headers (if _XOPEN_SOURCE is defined appropriately)
 than ISO C permits.
-
-<wchar.h> does not support AMD1; to support it, the functions
-fwprintf, fwscanf, wprintf, wscanf, swprintf, swscanf, vfwprintf,
-vwprintf, vswprintf and fwide would need to be declared when
-__STDC_VERSION__ >= 199409L and not just for C99.
index 7f73837fc4eb4e889bdfbd27e029568e44ab0f31..338380a18b499c2bf7878a19c3019188a1b4689f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-07-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * include/features.h (__USE_ISOC95): New define.
+       * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
+       swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
+       for -std=iso9899:199409.
+       * CONFORMANCE: Remove comments about unsupported AMD1.
+
 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/ia64/sched_cpucount.c: New file.
index 0c729e8a3ed70c85c70b35e025519cb66e3af05a..7f99741a95ba34dd77f0d3235d58839e55c9ba50 100644 (file)
@@ -56,6 +56,7 @@
    header files to decide what to declare or define:
 
    __USE_ISOC99                Define ISO C99 things.
+   __USE_ISOC95                Define ISO C90 AMD1 (C95) things.
    __USE_POSIX         Define IEEE Std 1003.1 things.
    __USE_POSIX2                Define IEEE Std 1003.2 things.
    __USE_POSIX199309   Define IEEE Std 1003.1, and .1b things.
@@ -90,6 +91,7 @@
 
 /* Undefine everything, so we get a clean slate.  */
 #undef __USE_ISOC99
+#undef __USE_ISOC95
 #undef __USE_POSIX
 #undef __USE_POSIX2
 #undef __USE_POSIX199309
 # define __USE_ISOC99  1
 #endif
 
+/* This is to enable the ISO C90 Amendment 1:1995 extension.  */
+#if (defined _ISOC99_SOURCE || defined _ISOC9X_SOURCE \
+     || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199409L))
+# define __USE_ISOC95  1
+#endif
+
 /* If none of the ANSI/POSIX macros are defined, use POSIX.1 and POSIX.2
    (and IEEE Std 1003.1b-1993 unless _XOPEN_SOURCE is defined).  */
 #if ((!defined __STRICT_ANSI__ || (_XOPEN_SOURCE - 0) >= 500) && \
index 2aa55602355e74c6de184ca6ddc34f100636b10d..7a7a62fa2ff79edc67b2c5d6a8427727f318a318 100644 (file)
@@ -1,3 +1,9 @@
+2007-07-16  Jakub Jelinek  <jakub@redhat.com>
+
+       * locales/ar_SA (d_t_fmt, d_fmt, t_fmt, t_fmt_ampm): Replace %.1d
+       with supported %e and %.1H with %k.
+       * locales/dz_BT (t_fmt): Remove whitespace between % and H.
+
 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
 
        [BZ #4773]
index 0a463b2164cd70bbec43939777a50072a4001f68..16751a9eb1779179531258c5cb3b54bf793889e2 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
+       Define.
+
 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
        * sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
index 5ef4b1a98f19ac3b7a6861f4e3f4884677a4df08..e9a3fba8c1ac9624f76b4095f52ebaad78fad57c 100644 (file)
@@ -607,7 +607,7 @@ extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
 extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW;
 #endif
 
-#if defined __USE_ISOC99 || defined __USE_UNIX98
+#if defined __USE_ISOC95 || defined __USE_UNIX98
 __BEGIN_NAMESPACE_C99
 
 /* Select orientation for stream.  */
@@ -674,7 +674,7 @@ extern int swscanf (__const wchar_t *__restrict __s,
      __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
 
 __END_NAMESPACE_C99
-#endif /* Use ISO C99 and Unix98. */
+#endif /* Use ISO C95, C99 and Unix98. */
 
 #ifdef __USE_ISOC99
 __BEGIN_NAMESPACE_C99