cpperror.c (v_cpp_message): Remove static prototype.
authorDave Brolley <brolley@cygnus.com>
Mon, 25 May 1998 11:04:40 +0000 (11:04 +0000)
committerDave Brolley <brolley@gcc.gnu.org>
Mon, 25 May 1998 11:04:40 +0000 (07:04 -0400)
Mon May 25 14:00:13 1998  Dave Brolley  <brolley@cygnus.com>
* cpperror.c (v_cpp_message): Remove static prototype.
* cpplib.c (v_cpp_message): Move prototype to cpplib.h.
* cpplib.h (v_cpp_message): Add protoptype.
(stdarg.h,varargs.h): Needed for v_cpp_message prototype.

From-SVN: r20046

gcc/ChangeLog
gcc/cpperror.c
gcc/cpplib.c
gcc/cpplib.h

index 4de201559477075611b4e4a1de3ea8948de8ecf6..bfc786fa4b1fbb173b8846aeb27539660ff52d65 100644 (file)
@@ -1,3 +1,10 @@
+Mon May 25 14:00:13 1998  Dave Brolley  <brolley@cygnus.com>
+
+       * cpperror.c (v_cpp_message): Remove static prototype.
+       * cpplib.c (v_cpp_message): Move prototype to cpplib.h.
+       * cpplib.h (v_cpp_message): Add protoptype.
+       (stdarg.h,varargs.h): Needed for v_cpp_message prototype.
+
 Sun May 24 20:36:15 PDT 1998 Jeff Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
index fdd08195c2985e40669cd3ea6c5edfbcba6d389d..c4cac065e7c4d5bfdb548bd5afec6103e808f6fd 100644 (file)
@@ -37,8 +37,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 #include "cpplib.h"
 
-static void v_cpp_message PROTO ((cpp_reader *, int, const char *, va_list));
-
 /* Print the file names and line numbers of the #include
    commands which led to the current file.  */
 
index 884bda1990854a6a6b8d94c088231a24271dfd74..6084d3f6cb2f7deca744276256ca68cb0e11abff 100644 (file)
@@ -202,7 +202,6 @@ struct cpp_pending {
 
 char *xmalloc ();
 extern void cpp_hash_cleanup PARAMS ((cpp_reader *));
-extern void v_cpp_message PROTO ((cpp_reader *, int, const char *, va_list));
 
 static void add_import                 PROTO ((cpp_reader *, int, char *));
 static void append_include_chain       PROTO ((cpp_reader *,
index 49fcc737f053044ff18152c32fcf27b0f40a589f..37468dd0a6914b45ef0e563a50a6e2226e81f1d8 100644 (file)
@@ -22,6 +22,11 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef __STDC__
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {
@@ -654,6 +659,7 @@ extern void cpp_pedwarn_with_file_and_line PVPROTO ((cpp_reader *, char *, int,
   ATTRIBUTE_PRINTF_4;
 extern void cpp_error_from_errno PROTO ((cpp_reader *, const char *));
 extern void cpp_perror_with_name PROTO ((cpp_reader *, const char *));
+extern void v_cpp_message PROTO ((cpp_reader *, int, const char *, va_list));
 
 extern void cpp_grow_buffer PARAMS ((cpp_reader *, long));
 extern int cpp_parse_escape PARAMS ((cpp_reader *, char **));