OSDN Git Service

* toplev.c (debug_args, f_options, W_options): Mark
[pf3gnuchains/gcc-fork.git] / gcc / doprint.c
index dc36254..5564421 100644 (file)
@@ -1,16 +1,23 @@
 /* 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.
- */
+   Copyright (C) 1998, 1999, 2000 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. */
@@ -79,7 +86,7 @@ _doprnt (format, ap, stream)
          if (*ptr == '*')
            COPY_VA_INT;
          else
-           while (isdigit(*ptr)) /* Handle explicit numeric value. */
+           while (ISDIGIT(*ptr)) /* Handle explicit numeric value. */
              *sptr++ = *ptr++;
          
          if (*ptr == '.')
@@ -88,7 +95,7 @@ _doprnt (format, ap, stream)
              if (*ptr == '*')
                COPY_VA_INT;
              else
-               while (isdigit(*ptr)) /* Handle explicit numeric value. */
+               while (ISDIGIT(*ptr)) /* Handle explicit numeric value. */
                  *sptr++ = *ptr++;
            }
          while (strchr ("hlL", *ptr))
@@ -197,21 +204,21 @@ _doprnt (format, ap, stream)
     fflush(stdin); \
 } while (0)
 
-static int checkit PVPROTO ((const char * format, ...)) ATTRIBUTE_PRINTF_1;
+static int checkit PARAMS ((const char * format, ...)) ATTRIBUTE_PRINTF_1;
 
 static int
-checkit VPROTO ((const char* format, ...))
+checkit VPARAMS ((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