]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use alloca.h instead of liballoca.h.
authorBruno Haible <bruno@clisp.org>
Tue, 14 Jan 2003 13:28:57 +0000 (13:28 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:56 +0000 (12:08 +0200)
30 files changed:
ChangeLog
configure.in
lib/ChangeLog
lib/Makefile.am
lib/alloca_.h [moved from lib/liballoca.h with 67% similarity]
lib/javacomp.c
lib/javaexec.c
lib/setenv.c
libasprintf/ChangeLog
libasprintf/Makefile.am
libasprintf/alloca_.h [moved from libasprintf/liballoca.h with 67% similarity]
libasprintf/configure.in
libasprintf/vasnprintf.c
m4/ChangeLog
m4/Makefile.am
m4/alloca.m4 [new file with mode: 0644]
src/ChangeLog
src/format-java.c
src/msggrep.c
src/msginit.c
src/msgl-cat.c
src/msgl-charset.c
src/msgl-iconv.c
src/msgmerge.c
src/po-charset.c
src/read-tcl.c
src/write-java.c
src/write-mo.c
src/write-po.c
src/write-tcl.c

index 2426b01a5c2f2c619cef5f74cc7bfc19727ecdcd..a8859ae834f1420b94823200ec7deb318ef00305 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-12  Bruno Haible  <bruno@clisp.org>
+
+       * configure.in: Invoke gl_FUNC_ALLOCA instead of AC_FUNC_ALLOCA.
+
 2003-01-12  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am: Make use of += for variables.
index cf0c56b54942d67833cd02bc9e693b3ca2d0906c..dba9b518f3864de1243ed75565f29a2758650ebc 100644 (file)
@@ -73,7 +73,7 @@ gt_TYPE_SSIZE_T
 AC_TYPE_PID_T
 
 dnl Checks for library functions.
-AC_FUNC_ALLOCA
+gl_FUNC_ALLOCA
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS([getcwd mblen memcpy posix_spawn putc_unlocked raise select \
 strerror strtoul uname utime utimes])
index d9c6ecb112d02f11f4a77ef0daba038723aa6a3b..fd8e89af4a29a9c3d88cdf7ce2b5fa5c180ddf66 100644 (file)
@@ -1,3 +1,13 @@
+2003-01-12  Bruno Haible  <bruno@clisp.org>
+
+       * alloca_.h: New file, from gnulib.
+       * liballoca.h: Remove file.
+       * Makefile.am: Add snippet from gnulib module alloca.
+       (LIBADD_SOURCE): Remove liballoca.h.
+       * javacomp.c: Include alloca.h instead of liballoca.h.
+       * javaexec.c: Likewise.
+       * setenv.c: Likewise.
+
 2003-01-12  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am: Make use of += for variables.
index 09718d5b0b7905c7b144dc0ed9cf84af40d21661..3caa9cb95bf9edda81a573604b8478de5bfe2b3f 100644 (file)
@@ -71,7 +71,7 @@ libgettextlib_la_SOURCES = \
 # Sources that are compiled only on platforms that lack the functions.
 
 LIBADD_SOURCE = \
-  liballoca.h alloca.c \
+  alloca.c \
   getline.h getline.c \
   memset.c \
   mkdtemp.h mkdtemp.c \
@@ -138,6 +138,18 @@ MOSTLYCLEANFILES += stdbool.h
 # <<< gnulib module stdbool.
 
 
+# >>> gnulib module alloca.
+EXTRA_DIST += alloca_.h
+
+# The following is needed in order to create an <alloca.h> when the system
+# doesn't have one that works with the given compiler.
+all-local $(libgettextlib_la_OBJECTS): @ALLOCA_H@
+alloca.h: alloca_.h
+       cp $(srcdir)/alloca_.h alloca.h
+MOSTLYCLEANFILES += alloca.h
+# <<< gnulib module alloca.
+
+
 # >>> gnulib module localcharset.
 libgettextlib_la_SOURCES += localcharset.c
 EXTRA_DIST += config.charset ref-add.sin ref-del.sin
similarity index 67%
rename from lib/liballoca.h
rename to lib/alloca_.h
index 8da76dbb587b05cdc2a49418bf710931f6153e4f..b834871b497d4841c27e8dd0c2f8ed2ff2e3393f 100644 (file)
@@ -1,5 +1,5 @@
 /* Memory allocation on the stack.
-   Copyright (C) 1995, 1999, 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1999, 2001-2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published
    declarations.  Thanks to AIX.  Therefore we include it right after
    "config.h", not later.  */
 
-#ifndef _LIBALLOCA_H
-#define _LIBALLOCA_H
+#ifndef _ALLOCA_H
+#define _ALLOCA_H
+
+/* alloca(N) returns a pointer (void* or char*) to N bytes of memory
+   allocated on the stack, and which will last until the function returns.
+   Use of alloca should be avoided:
+     - inside arguments of function calls - undefined behaviour,
+     - in inline functions - the allocation may actually last until the
+       calling function returns,
+     - for huge N (say, N >= 65536) - you never know how large (or small)
+       the stack is, and when the stack cannot fulfill the memory allocation
+       request, the program just crashes.
+ */
 
 #ifdef __GNUC__
 # ifndef alloca
 #     ifdef __cplusplus
 extern "C" void *alloca (unsigned int);
 #     else /* not __cplusplus */
-void *alloca ();
+extern void *alloca ();
 #     endif /* not __cplusplus */
 #    else /* not __hpux */
 #     ifndef alloca
-char *alloca ();
+extern char *alloca ();
 #     endif
 #    endif /* __hpux */
 #   endif
@@ -54,4 +65,4 @@ char *alloca ();
 # endif
 #endif
 
-#endif /* _LIBALLOCA_H */
+#endif /* _ALLOCA_H */
index 46164b0f177e34c4701bf8de6fb8a98cad3e578b..06a2c3a0a90e33807ff4d39140dce6ad9283075b 100644 (file)
@@ -1,5 +1,5 @@
 /* Compile a Java program.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "javacomp.h"
index fd82b549bfd38e2bd16b4de3ecdc6188db0b17a0..8193a07eb4e739b3b8fab266f734fba84c50fa61 100644 (file)
@@ -1,5 +1,5 @@
 /* Execute a Java program.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "javaexec.h"
index 6a7548f0fe42c1aeb5bbd3abf17e585817c7f11e..17f8c6c0c31cd5f70cf71165a71bad55eb2ff356 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992,1995-1999,2000-2002 Free Software Foundation, Inc.
+/* Copyright (C) 1992,1995-1999,2000-2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,7 +19,7 @@
 #if HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 #include <errno.h>
 #if !_LIBC
index a2b51c1ab74382f86a20140014212dcce0aa4c14..7de1a0a5474f13cee0ace7ac5357132d3e05ebb0 100644 (file)
@@ -1,3 +1,12 @@
+2003-01-12  Bruno Haible  <bruno@clisp.org>
+
+       * configure.in: Invoke gl_FUNC_ALLOCA instead of AC_FUNC_ALLOCA.
+       * alloca_.h: New file, from gnulib.
+       * liballoca.h: Remove file.
+       * Makefile.am: Add snippet from gnulib module alloca.
+       (lib_asprintf_EXTRASOURCES): Remove liballoca.h.
+       * vasnprintf.c: Include alloca.h instead of liballoca.h.
+
 2003-01-12  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am: Make use of += for variables.
index f024c61a58dc821c8b1be67a57a8eeb5c446db22..4be6560177ddcfa017f0884ae999a6397f3d81da 100644 (file)
@@ -42,12 +42,23 @@ lib_asprintf_EXTRASOURCES = \
   printf-args.h printf-args.c \
   printf-parse.h printf-parse.c \
   vasnprintf.h vasnprintf.c asnprintf.c \
-  vasprintf.h vasprintf.c asprintf.c \
-  liballoca.h
+  vasprintf.h vasprintf.c asprintf.c
 lib-asprintf.lo: $(lib_asprintf_EXTRASOURCES)
 EXTRA_DIST += $(lib_asprintf_EXTRASOURCES)
 
 
+# >>> gnulib module alloca.
+EXTRA_DIST += alloca_.h
+
+# The following is needed in order to create an <alloca.h> when the system
+# doesn't have one that works with the given compiler.
+all-local $(lib_OBJECTS): @ALLOCA_H@
+alloca.h: alloca_.h
+       cp $(srcdir)/alloca_.h alloca.h
+MOSTLYCLEANFILES += alloca.h
+# <<< gnulib module alloca.
+
+
 # Documentation.
 
 docdir = $(prefix)/doc/@PACKAGE@
similarity index 67%
rename from libasprintf/liballoca.h
rename to libasprintf/alloca_.h
index 8da76dbb587b05cdc2a49418bf710931f6153e4f..b834871b497d4841c27e8dd0c2f8ed2ff2e3393f 100644 (file)
@@ -1,5 +1,5 @@
 /* Memory allocation on the stack.
-   Copyright (C) 1995, 1999, 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1999, 2001-2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published
    declarations.  Thanks to AIX.  Therefore we include it right after
    "config.h", not later.  */
 
-#ifndef _LIBALLOCA_H
-#define _LIBALLOCA_H
+#ifndef _ALLOCA_H
+#define _ALLOCA_H
+
+/* alloca(N) returns a pointer (void* or char*) to N bytes of memory
+   allocated on the stack, and which will last until the function returns.
+   Use of alloca should be avoided:
+     - inside arguments of function calls - undefined behaviour,
+     - in inline functions - the allocation may actually last until the
+       calling function returns,
+     - for huge N (say, N >= 65536) - you never know how large (or small)
+       the stack is, and when the stack cannot fulfill the memory allocation
+       request, the program just crashes.
+ */
 
 #ifdef __GNUC__
 # ifndef alloca
 #     ifdef __cplusplus
 extern "C" void *alloca (unsigned int);
 #     else /* not __cplusplus */
-void *alloca ();
+extern void *alloca ();
 #     endif /* not __cplusplus */
 #    else /* not __hpux */
 #     ifndef alloca
-char *alloca ();
+extern char *alloca ();
 #     endif
 #    endif /* __hpux */
 #   endif
@@ -54,4 +65,4 @@ char *alloca ();
 # endif
 #endif
 
-#endif /* _LIBALLOCA_H */
+#endif /* _ALLOCA_H */
index e0595c3a397b18da82c1fdf1dde82fe241788e33..1092744f14275147b1fbf14f456147628a023b19 100644 (file)
@@ -37,7 +37,7 @@ AC_CHECK_TYPES(ptrdiff_t)
 gt_TYPE_INTMAX_T
 
 dnl Checks for library functions.
-AC_FUNC_ALLOCA
+gl_FUNC_ALLOCA
 AC_CHECK_FUNCS([snprintf vasprintf])
 
 dnl Check for tools needed for formatting the documentation.
index e2c1b1a9c74e31f57243fac81c741afc806a7235..7aac42bcd5749424d1915907d890bc9d006da38e 100644 (file)
@@ -26,7 +26,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "vasnprintf.h"
index fb70d33dfff4d7094d8bc9448a705b75db426b6e..6092eebde351ade2de8a89c643d7e35b2ca0d101 100644 (file)
@@ -1,3 +1,9 @@
+2003-01-12  Bruno Haible  <bruno@clisp.org>
+
+       * onceonly.m4: New file, from gnulib.
+       * alloca.m4: New file, from gnulib.
+       * Makefile.am (EXTRA_DIST): Add them.
+
 2003-01-12  Bruno Haible  <bruno@clisp.org>
 
        * wint_t.m4: New file.
index b22a795fc0dea5f40388b9287ce88eae04db69ce..a813999700d1caf46586dcb6978c1f4dc5de8df6 100644 (file)
@@ -4,14 +4,53 @@ aclocaldir = @aclocaldir@
 aclocal_DATA = codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 lcmessage.m4 progtest.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4
 
 # Generate this list with
-# find . -type f -name '*.m4' -printf '%f\n'|sort |fmt |tr '\012' @ \
-#   |sed 's/@$/%/;s/@/ \\@/g' |tr @% '\012\012'
+# find . -type f -name '*.m4' -printf '%f\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012'
 EXTRA_DIST = README \
-backupfile.m4 codeset.m4 error.m4 fixautomake.m4 flex.m4 fnmatch.m4 gcj.m4 \
-getline.m4 gettext.m4 glibc21.m4 hostname.m4 iconv.m4 intdiv0.m4 intmax.m4 \
-inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 javacomp.m4 \
-javaexec.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 libtool.m4 \
-longdouble.m4 longlong.m4 mbrtowc.m4 mbstate_t.m4 mbswidth.m4 mkdtemp.m4 \
-progtest.m4 setenv.m4 setlocale.m4 siginfo.m4 signalblocking.m4 signed.m4 \
-ssize_t.m4 stdbool.m4 stdint_h.m4 tmpdir.m4 uintmax_t.m4 ulonglong.m4 \
-unionwait.m4 wchar_t.m4 wint_t.m4
+alloca.m4 \
+backupfile.m4 \
+codeset.m4 \
+error.m4 \
+fixautomake.m4 \
+flex.m4 \
+fnmatch.m4 \
+gcj.m4 \
+getline.m4 \
+gettext.m4 \
+glibc21.m4 \
+hostname.m4 \
+iconv.m4 \
+intdiv0.m4 \
+intmax.m4 \
+inttypes.m4 \
+inttypes_h.m4 \
+inttypes-pri.m4 \
+isc-posix.m4 \
+javacomp.m4 \
+javaexec.m4 \
+lcmessage.m4 \
+lib-ld.m4 \
+lib-link.m4 \
+lib-prefix.m4 \
+libtool.m4 \
+longdouble.m4 \
+longlong.m4 \
+mbrtowc.m4 \
+mbstate_t.m4 \
+mbswidth.m4 \
+mkdtemp.m4 \
+onceonly.m4 \
+progtest.m4 \
+setenv.m4 \
+setlocale.m4 \
+siginfo.m4 \
+signalblocking.m4 \
+signed.m4 \
+ssize_t.m4 \
+stdbool.m4 \
+stdint_h.m4 \
+tmpdir.m4 \
+uintmax_t.m4 \
+ulonglong.m4 \
+unionwait.m4 \
+wchar_t.m4 \
+wint_t.m4
diff --git a/m4/alloca.m4 b/m4/alloca.m4
new file mode 100644 (file)
index 0000000..3a4ee7e
--- /dev/null
@@ -0,0 +1,36 @@
+# alloca.m4 serial 2
+dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License.  As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+AC_DEFUN([gl_FUNC_ALLOCA],
+[
+  dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57.
+  AC_REQUIRE([AC_PROG_CPP])
+  AC_REQUIRE([AC_PROG_EGREP])
+
+  AC_REQUIRE([AC_FUNC_ALLOCA])
+  if test $ac_cv_func_alloca_works = no; then
+    gl_PREREQ_ALLOCA
+  fi
+
+  # Define an additional variable used in the Makefile substitution.
+
+  AC_EGREP_CPP([Need own alloca], [
+#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
+  Need own alloca
+#endif
+    ],
+    ALLOCA_H=alloca.h,
+    ALLOCA_H=)
+  AC_SUBST([ALLOCA_H])
+])
+
+# Prerequisites of lib/alloca.c.
+# STACK_DIRECTION is already handled by AC_FUNC_ALLOCA.
+AC_DEFUN([gl_PREREQ_ALLOCA], [
+  AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
+])
index 2fb413dcecb223846b4ee5e27788b987fdfa2582..550e1565f5c5e6e00aaa5c2a1d779d77a5454756 100644 (file)
@@ -1,3 +1,19 @@
+2003-01-12  Bruno Haible  <bruno@clisp.org>
+
+       * format-java.c: Include alloca.h instead of liballoca.h.
+       * msggrep.c: Likewise.
+       * msginit.c: Likewise.
+       * msgl-cat.c: Likewise.
+       * msgl-charset.c: Likewise.
+       * msgl-iconv.c: Likewise.
+       * msgmerge.c: Likewise.
+       * po-charset.c: Likewise.
+       * read-tcl.c: Likewise.
+       * write-java.c: Likewise.
+       * write-mo.c: Likewise.
+       * write-po.c: Likewise.
+       * write-tcl.c: Likewise.
+
 2003-01-12  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am: Make use of += for variables.
index 3665f665c1e9aedf82f83a6daa4d8ec97b70e5b6..f44880405a86400749a886f4bc25cb0ae5c1b2e7 100644 (file)
@@ -1,5 +1,5 @@
 /* Java format strings.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 #include <stdbool.h>
 #include <stdlib.h>
index 09222bc68ae8af2ba8725a24bd983f3c8a4d1225..1c5975b546d276a1f0ae29ab7207d94116199adf 100644 (file)
@@ -1,5 +1,5 @@
 /* Extract some translations of a translation catalog.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 #include <errno.h>
 #include <getopt.h>
@@ -286,7 +286,7 @@ main (int argc, char **argv)
 This is free software; see the source for copying conditions.  There is NO\n\
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
 "),
-             "2001-2002");
+             "2001-2003");
       printf (_("Written by %s.\n"), "Bruno Haible");
       exit (EXIT_SUCCESS);
     }
index 07b7e026cffde83d86f0d47a991bb01afa699f18..75c926fd2de078e1df88d9fb28f2c305c995487f 100644 (file)
@@ -1,5 +1,5 @@
 /* Initializes a new PO file.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 #include <errno.h>
 #include <getopt.h>
@@ -231,7 +231,7 @@ main (int argc, char **argv)
 This is free software; see the source for copying conditions.  There is NO\n\
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
 "),
-             "2001-2002");
+             "2001-2003");
       printf (_("Written by %s.\n"), "Bruno Haible");
       exit (EXIT_SUCCESS);
     }
index 659e1d403b64b64d1c19b4230737c8d84c6fe9bc..1074479a796c3c1266a015ca209ded4e77bc61b4 100644 (file)
@@ -1,5 +1,5 @@
 /* Message list concatenation and duplicate handling.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "msgl-cat.h"
index 269c4e905ac470000110d70aa306d1939e79f6d5..777f809e7be6a24e1814cd11fff206f2b7a0f63e 100644 (file)
@@ -1,5 +1,5 @@
 /* Message list charset and locale charset handling.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "msgl-charset.h"
index 97616d692a70b2fc8df5bcef989f9cb0e465d45e..21faaf48aebf33ca907bf81519bc7f5694bcdf50 100644 (file)
@@ -1,5 +1,5 @@
 /* Message list charset and locale charset handling.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "msgl-iconv.h"
@@ -60,7 +60,7 @@ iconv_string (iconv_t cd, const char *start, const char *end,
   size_t length;
   char *result;
 
-  /* Avoid glibc-2.1 bug and Solaris 2.7 bug.  */
+  /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug.  */
 # if defined _LIBICONV_VERSION \
     || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun)
   /* Set to the initial state.  */
@@ -117,7 +117,7 @@ iconv_string (iconv_t cd, const char *start, const char *end,
   if (length == 0)
     return 0;
 
-  /* Avoid glibc-2.1 bug and Solaris 2.7 bug.  */
+  /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug.  */
 # if defined _LIBICONV_VERSION \
     || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun)
   /* Return to the initial state.  */
index 90fa9726f0df52afdb5e7ffb1ee7537737448f53..95789a8ca99b5c539e3a777f5845d2a3a5c0c8ce 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU gettext - internationalization aids
-   Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
+   Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
    This file was written by Peter Miller <millerp@canb.auug.org.au>
 
    This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 #include <getopt.h>
 #include <limits.h>
@@ -261,7 +261,7 @@ main (int argc, char **argv)
 This is free software; see the source for copying conditions.  There is NO\n\
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
 "),
-             "1995-1998, 2000-2002");
+             "1995-1998, 2000-2003");
       printf (_("Written by %s.\n"), "Peter Miller");
       exit (EXIT_SUCCESS);
     }
index e43772009cd85a9e0419faa50297e953c9458fa5..33023ee43c885a2f140f7311273868f5f1aef218 100644 (file)
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "po-charset.h"
index c312ef9ff2903a1d5ab55b67f5aa487d376bc75d..44831177e48ffaeefa1b2e785e0807a5c45e3d0e 100644 (file)
@@ -1,5 +1,5 @@
 /* Reading tcl/msgcat .msg files.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2002.
 
    This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "read-tcl.h"
index c9eef80276a82a3f28a4a0072dbe70037ef96835..c9b7476f8c8c5fb4467b6218113c5370fb00b70c 100644 (file)
@@ -1,5 +1,5 @@
 /* Writing Java ResourceBundles.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "write-java.h"
index ee1cb6aafac02abe1d96d979a4af08e51943f56a..6fd318d46e84f1057b919ac612e3c89dfa0a71a8 100644 (file)
@@ -1,5 +1,5 @@
 /* Writing binary .mo files.
-   Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
+   Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
 
    This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "write-mo.h"
index 59ad5777a331919678e6d15974e1d58756bcb8fe..32d6fcc9c8cc4ab117615c2e8fdaa8b9491f0f45 100644 (file)
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "write-po.h"
index 729942e8903ae40dc5e4dffdb5b0a8b37c5434b7..4f67c593a09a5897957ece37f16002243f2a32bf 100644 (file)
@@ -1,5 +1,5 @@
 /* Writing tcl/msgcat .msg files.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2002.
 
    This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#include "liballoca.h"
+#include <alloca.h>
 
 /* Specification.  */
 #include "write-tcl.h"