]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 29 Nov 2003 07:20:47 +0000 (07:20 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 29 Nov 2003 07:20:47 +0000 (07:20 +0000)
2003-10-10  Simon Josefsson  <jas@extundo.com>

* argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
strchrnul.h, strndup.h (from gnulib).
* argp/argp-parse.c: Add alloca.h include snippet verbatim from
Autoconf manual.
* argp/argp-help.c: Replace alloca.h include snipper with verbatim
Autoconf manual version.
* argp/argp.h: Map __restrict to restrict or empty string when
necessary, copied verbatim from posix/regex.h.

ChangeLog
NEWS
argp/argp-help.c
argp/argp-namefrob.h
argp/argp-parse.c
argp/argp.h

index a9bf18e9ef653491a32ca6c39d90610686ef3714..78eb0838efce819dcc14610fd82f6cfb14dccfbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2003-10-10  Simon Josefsson  <jas@extundo.com>
+
+       * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
+       strchrnul.h, strndup.h (from gnulib).
+       * argp/argp-parse.c: Add alloca.h include snippet verbatim from
+       Autoconf manual.
+       * argp/argp-help.c: Replace alloca.h include snipper with verbatim
+       Autoconf manual version.
+       * argp/argp.h: Map __restrict to restrict or empty string when
+       necessary, copied verbatim from posix/regex.h.
+
 2003-10-09  Steven Munroe  <sjmunroe@us.ibm.com>
 
        * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
diff --git a/NEWS b/NEWS
index 8a16f07a9e8ef38d325918441825d5cb55c2645e..16d0b96b041345b3e88777053ad106476ceb5a6c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -22,7 +22,7 @@ Version 2.3.3
 * support for non-executable stacks on x86 has been added.  Changes mostly
   by Roland McGrath.
 
-* regex is now much faster for multibyte locaes.  Changes by Jakub Jelinek
+* regex is now much faster for multibyte locales.  Changes by Jakub Jelinek
   and Ulrich Drepper.
 
 * getaddrinfo now performs destination address selection according to
index 1365abcea6933bd6eec8ec963b8130a548e88768..b7e088ef100bcae1913ee5328eb9492a8dc26e40 100644 (file)
 #include <config.h>
 #endif
 
-#ifndef alloca
-# ifdef __GNUC__
-#  define alloca __builtin_alloca
-#  define HAVE_ALLOCA 1
+/* AIX requires this to be the first thing in the file.  */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H || defined _LIBC
+#  include <alloca.h>
 # else
-#  if defined HAVE_ALLOCA_H || defined _LIBC
-#   include <alloca.h>
+#  ifdef _AIX
+#pragma alloca
 #  else
-#   ifdef _AIX
- #pragma alloca
-#   else
-#    ifndef alloca
+#   ifndef alloca /* predefined by HP cc +Olibcalls */
 char *alloca ();
-#    endif
 #   endif
 #  endif
 # endif
index 26e285bfbacfcbb25d0149a3b19c4359912e7906..6924df7ddce70e3911911ff203d49a930f4be598 100644 (file)
 #undef __argp_fmtstream_wmargin
 #define __argp_fmtstream_wmargin argp_fmtstream_wmargin
 
+#include "mempcpy.h"
+#include "strcase.h"
+#include "strchrnul.h"
+#include "strndup.h"
+
 /* normal libc functions we call */
 #undef __flockfile
 #define __flockfile flockfile
index 0b619db0f305db91a39ea37f8c1d8e1d43488cff..47223dc5979ca3150222359704ea4da5077ceaba 100644 (file)
@@ -1,5 +1,5 @@
 /* Hierarchial argument parsing, layered over getopt
-   Copyright (C) 1995-2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1995-2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Miles Bader <miles@gnu.ai.mit.edu>.
 
 #include <config.h>
 #endif
 
+/* AIX requires this to be the first thing in the file.  */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H || defined _LIBC
+#  include <alloca.h>
+# else
+#  ifdef _AIX
+#pragma alloca
+#  else
+#   ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+#   endif
+#  endif
+# endif
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
index cb2f85aee7b812c2807cdd4435f2f6891e0bd8bd..78a9d1bb3ceb323bdf83afe6fe4f3445d9eefb1c 100644 (file)
 # endif
 #endif
 
+/* GCC 2.95 and later have "__restrict"; C99 compilers have
+   "restrict", and "configure" may have defined "restrict".  */
+#ifndef __restrict
+# if ! (2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__))
+#  if defined restrict || 199901L <= __STDC_VERSION__
+#   define __restrict restrict
+#  else
+#   define __restrict
+#  endif
+# endif
+#endif
+
 #ifndef __error_t_defined
 typedef int error_t;
 # define __error_t_defined