changeset 4695:4cd5b2420ecf

Assume vprintf.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 12 Sep 2003 19:47:20 +0000
parents f411b1e0c5bd
children 4753d416bf20
files lib/error.c m4/error.m4
diffstat 2 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/lib/error.c
+++ b/lib/error.c
@@ -132,11 +132,10 @@
 static void
 error_tail (int status, int errnum, const char *message, va_list args)
 {
-#if HAVE_VPRINTF || _LIBC
-# if _LIBC
+#if _LIBC
   if (_IO_fwide (stderr, 0) > 0)
     {
-#  define ALLOCA_LIMIT	2000
+# define ALLOCA_LIMIT 2000
       size_t len = strlen (message) + 1;
       wchar_t *wmessage = NULL;
       mbstate_t st;
@@ -174,11 +173,8 @@
       __vfwprintf (stderr, wmessage, args);
     }
   else
-# endif
+#endif
     vfprintf (stderr, message, args);
-#else
-  _doprnt (message, args, stderr);
-#endif
   va_end (args);
 
   ++error_message_count;
@@ -200,7 +196,6 @@
    format string with optional args.
    If ERRNUM is nonzero, print its corresponding system error message.
    Exit with status STATUS if it is nonzero.  */
-/* VARARGS */
 void
 error (int status, int errnum, const char *message, ...)
 {
--- a/m4/error.m4
+++ b/m4/error.m4
@@ -1,4 +1,4 @@
-#serial 8
+#serial 9
 
 AC_DEFUN([gl_ERROR],
 [
@@ -10,6 +10,6 @@
 # Prerequisites of lib/error.c.
 AC_DEFUN([jm_PREREQ_ERROR],
 [
-  AC_REQUIRE([AC_FUNC_VPRINTF])
-  AC_FUNC_STRERROR_R
+  AC_REQUIRE([AC_FUNC_STRERROR_R])
+  :
 ])