From: Bruno Haible Date: Sat, 22 Jul 2006 15:52:26 +0000 (+0000) Subject: Update from gnulib. X-Git-Tag: 0.16.x-branchpoint~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=302ce3ec4b8fe53678b8f8dddffe0e196652d5e7;p=thirdparty%2Fgettext.git Update from gnulib. --- diff --git a/gettext-tools/lib/obstack.c b/gettext-tools/lib/obstack.c index 5a6dd7956..f84e6d04a 100644 --- a/gettext-tools/lib/obstack.c +++ b/gettext-tools/lib/obstack.c @@ -51,10 +51,6 @@ # endif #endif -#if defined _LIBC && defined USE_IN_LIBIO -# include -#endif - #include #ifndef ELIDE_CODE @@ -433,12 +429,11 @@ print_and_abort (void) happen because the "memory exhausted" message appears in other places like this and the translation should be reused instead of creating a very similar string which requires a separate translation. */ -# if defined _LIBC && defined USE_IN_LIBIO - if (_IO_fwide (stderr, 0) > 0) - __fwprintf (stderr, L"%s\n", _("memory exhausted")); - else +# ifdef _LIBC + (void) __fxprintf (NULL, "%s\n", _("memory exhausted")); +# else + fprintf (stderr, "%s\n", _("memory exhausted")); # endif - fprintf (stderr, "%s\n", _("memory exhausted")); exit (obstack_exit_failure); } diff --git a/gettext-tools/lib/obstack.h b/gettext-tools/lib/obstack.h index 687d43ef4..63857fd38 100644 --- a/gettext-tools/lib/obstack.h +++ b/gettext-tools/lib/obstack.h @@ -1,11 +1,6 @@ /* obstack.h - object stack macros - Copyright (C) 1988-1994, 1996-1999, 2003-2004 Free Software Foundation, Inc. - - This file is part of the GNU C Library. Its master source is NOT part of - the C library, however. The master source lives in /gd/gnu/lib. - - NOTE: The canonical source of this file is maintained with the GNU C Library. - Bugs can be reported to bug-glibc@gnu.org. + Copyright (C) 1988-1994, 1996-1999, 2003-2005 Free Software Foundation, Inc. + This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -464,7 +459,7 @@ __extension__ \ (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr)) # define obstack_int_grow_fast(h,aint) \ - (((int *) ((h)->next_free += sizeof (int)))[-1] = (aptr)) + (((int *) ((h)->next_free += sizeof (int)))[-1] = (aint)) # define obstack_blank(h,length) \ ( (h)->temp.tempint = (length), \