aboutsummaryrefslogtreecommitdiff
path: root/libiberty/vfprintf.c
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-09-05 04:42:19 -0600
committerJeff Law <law@gcc.gnu.org>1998-09-05 04:42:19 -0600
commit29382d668f42f548224ad463e1561badbb20fb85 (patch)
treefd464352e92bad0008f2067204436f5b84db7b5d /libiberty/vfprintf.c
parent39802f419ab60409c9cd1f5e9fe21d36169e4c59 (diff)
downloadgcc-29382d668f42f548224ad463e1561badbb20fb85.zip
gcc-29382d668f42f548224ad463e1561badbb20fb85.tar.gz
gcc-29382d668f42f548224ad463e1561badbb20fb85.tar.bz2
pexecute.c: Updates from gcc.
* pexecute.c: Updates from gcc. Copy in gcc has been removed. This is the canonical copy. Define ISSPACE if !IN_GCC. * alloca.c, vfprintf.c: Similarly. From-SVN: r22249
Diffstat (limited to 'libiberty/vfprintf.c')
-rw-r--r--libiberty/vfprintf.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/libiberty/vfprintf.c b/libiberty/vfprintf.c
index ce3fdf9..db7b2ff 100644
--- a/libiberty/vfprintf.c
+++ b/libiberty/vfprintf.c
@@ -1,13 +1,21 @@
-#include <stdio.h>
+/* Provide a version vfprintf in terms of _doprnt.
+ By Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98
+ Copyright (C) 1998 Free Software Foundation, Inc.
+ */
+
+#ifdef __STDC__
+#include <stdarg.h>
+#else
#include <varargs.h>
-#include <ansidecl.h>
+#endif
+#include <stdio.h>
#undef vfprintf
int
-vfprintf (file, format, ap)
- FILE *file;
- const char *format;
- va_list ap;
+vfprintf (stream, format, ap)
+ FILE * stream;
+ const char * format;
+ va_list ap;
{
- return _doprnt (format, ap, file);
+ return _doprnt (format, ap, stream);
}