summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/doprint.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-10-16 06:09:09 +0000
committerobrien <obrien@FreeBSD.org>1999-10-16 06:09:09 +0000
commitcae8fa8120c70195f34a2456f18c4c848a2d3e0c (patch)
treef7d3a3ab9c32694206552e767626366f016f2062 /contrib/gcc/doprint.c
parent84656b55b6e25e30322dc903a05de53706361d3d (diff)
downloadFreeBSD-src-cae8fa8120c70195f34a2456f18c4c848a2d3e0c.zip
FreeBSD-src-cae8fa8120c70195f34a2456f18c4c848a2d3e0c.tar.gz
Virgin import of the GCC 2.95.1 compilers
Diffstat (limited to 'contrib/gcc/doprint.c')
-rw-r--r--contrib/gcc/doprint.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/contrib/gcc/doprint.c b/contrib/gcc/doprint.c
index dc36254..2dc4dde 100644
--- a/contrib/gcc/doprint.c
+++ b/contrib/gcc/doprint.c
@@ -1,16 +1,25 @@
/* Provide a version _doprnt in terms of fprintf.
- By Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98
Copyright (C) 1998 Free Software Foundation, Inc.
+ Contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98
+
+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 the
+Free Software Foundation; either version 2, or (at your option) any
+later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
*/
#include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include "system.h"
-#include "gansidecl.h"
#undef _doprnt
#ifdef TEST /* Make sure to use the internal one. */
@@ -205,13 +214,13 @@ checkit VPROTO ((const char* format, ...))
va_list args;
int result;
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
VA_START (args, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (args, char *);
#endif
OpenPOWER on IntegriCloud