Patch installed: cpp*.[ch] PROTO->PARAMS

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Wed Jan 19 14:53:00 GMT 2000


Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.5485
diff -u -p -r1.5485 ChangeLog
--- ChangeLog	2000/01/19 22:39:29	1.5485
+++ ChangeLog	2000/01/19 22:51:28
@@ -1,4 +1,10 @@
 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+	
+	* cppalloc.c: PROTO -> PARAMS.
+	* cpperror.c: Likewise.
+	* cppfiles.c: Likewise.
+	* cpplib.c: Likewise.
+	* cpplib.h: Likewise.
 
 	* config/arm/arm-protos.h: PROTO -> PARAMS.
 	* config/arm/arm.c: Likewise.
Index: cppalloc.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cppalloc.c,v
retrieving revision 1.17
diff -u -p -r1.17 cppalloc.c
--- cppalloc.c	1999/09/11 05:38:06	1.17
+++ cppalloc.c	2000/01/19 22:51:28
@@ -26,7 +26,7 @@ Foundation, 59 Temple Place - Suite 330,
 #include "system.h"
 #include "cpplib.h"
 
-static void memory_full PROTO ((void)) ATTRIBUTE_NORETURN;
+static void memory_full PARAMS ((void)) ATTRIBUTE_NORETURN;
 
 static void
 memory_full ()
Index: cpperror.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cpperror.c,v
retrieving revision 1.18
diff -u -p -r1.18 cpperror.c
--- cpperror.c	1999/09/11 05:38:06	1.18
+++ cpperror.c	2000/01/19 22:51:28
@@ -124,7 +124,7 @@ v_cpp_message (pfile, is_error, msgid, a
 }
 
 void
-cpp_message VPROTO ((cpp_reader *pfile, int is_error, const char *msgid, ...))
+cpp_message VPARAMS ((cpp_reader *pfile, int is_error, const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
   cpp_reader *pfile;
@@ -152,7 +152,7 @@ cpp_message VPROTO ((cpp_reader *pfile, 
    CPP_FATAL_ERRORS.  */
 
 void
-cpp_fatal VPROTO ((cpp_reader *pfile, const char *msgid, ...))
+cpp_fatal VPARAMS ((cpp_reader *pfile, const char *msgid, ...))
 {  
 #ifndef ANSI_PROTOTYPES
   cpp_reader *pfile;
@@ -188,7 +188,7 @@ cpp_pfatal_with_name (pfile, name)
 /* Print an error message.  */
 
 void
-cpp_notice VPROTO ((const char *msgid, ...))
+cpp_notice VPARAMS ((const char *msgid, ...))
 {  
 #ifndef ANSI_PROTOTYPES
   const char *msgid;
Index: cppfiles.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cppfiles.c,v
retrieving revision 1.28
diff -u -p -r1.28 cppfiles.c
--- cppfiles.c	1999/12/14 07:06:05	1.28
+++ cppfiles.c	2000/01/19 22:51:31
@@ -33,27 +33,27 @@ Foundation, 59 Temple Place - Suite 330,
    so it's static anyway. */
 
 static struct include_hash *redundant_include_p
-					PROTO ((cpp_reader *,
+					PARAMS ((cpp_reader *,
 						struct include_hash *,
 						struct file_name_list *));
-static struct file_name_map *read_name_map	PROTO ((cpp_reader *,
+static struct file_name_map *read_name_map	PARAMS ((cpp_reader *,
 							const char *));
-static char *read_filename_string	PROTO ((int, FILE *));
-static char *remap_filename 		PROTO ((cpp_reader *, char *,
+static char *read_filename_string	PARAMS ((int, FILE *));
+static char *remap_filename 		PARAMS ((cpp_reader *, char *,
 						struct file_name_list *));
-static long read_and_prescan		PROTO ((cpp_reader *, cpp_buffer *,
+static long read_and_prescan		PARAMS ((cpp_reader *, cpp_buffer *,
 						int, size_t));
-static struct file_name_list *actual_directory PROTO ((cpp_reader *,
+static struct file_name_list *actual_directory PARAMS ((cpp_reader *,
 						       const char *));
-static void initialize_input_buffer	PROTO ((cpp_reader *, int,
+static void initialize_input_buffer	PARAMS ((cpp_reader *, int,
 						struct stat *));
-static int file_cleanup			PROTO ((cpp_buffer *, cpp_reader *));
-static void find_position		PROTO ((U_CHAR *, U_CHAR *,
+static int file_cleanup			PARAMS ((cpp_buffer *, cpp_reader *));
+static void find_position		PARAMS ((U_CHAR *, U_CHAR *,
 						unsigned long *,
 						unsigned long *));
 
 #if 0
-static void hack_vms_include_specification PROTO ((char *));
+static void hack_vms_include_specification PARAMS ((char *));
 #endif
 
 /* Windows does not natively support inodes, and neither does MSDOS.
Index: cpplib.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cpplib.c,v
retrieving revision 1.97
diff -u -p -r1.97 cpplib.c
--- cpplib.c	2000/01/12 00:35:36	1.97
+++ cpplib.c	2000/01/19 22:51:35
@@ -37,13 +37,13 @@ Foundation, 59 Temple Place - Suite 330,
 
 /* Forward declarations.  */
 
-static const char *my_strerror		PROTO ((int));
-static void validate_else		PROTO ((cpp_reader *, const char *));
-static HOST_WIDEST_INT eval_if_expression	PROTO ((cpp_reader *));
+static const char *my_strerror		PARAMS ((int));
+static void validate_else		PARAMS ((cpp_reader *, const char *));
+static HOST_WIDEST_INT eval_if_expression	PARAMS ((cpp_reader *));
 
-static void conditional_skip		PROTO ((cpp_reader *, int,
+static void conditional_skip		PARAMS ((cpp_reader *, int,
 						enum node_type, U_CHAR *));
-static void skip_if_group		PROTO ((cpp_reader *));
+static void skip_if_group		PARAMS ((cpp_reader *));
 
 static void parse_name			PARAMS ((cpp_reader *, int));
 static void parse_string		PARAMS ((cpp_reader *, int));
@@ -3258,7 +3258,7 @@ v_cpp_error (pfile, msgid, ap)
 }
 
 void
-cpp_error VPROTO ((cpp_reader * pfile, const char *msgid, ...))
+cpp_error VPARAMS ((cpp_reader * pfile, const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
   cpp_reader *pfile;
@@ -3297,7 +3297,7 @@ v_cpp_warning (pfile, msgid, ap)
 }
 
 void
-cpp_warning VPROTO ((cpp_reader * pfile, const char *msgid, ...))
+cpp_warning VPARAMS ((cpp_reader * pfile, const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
   cpp_reader *pfile;
@@ -3319,7 +3319,7 @@ cpp_warning VPROTO ((cpp_reader * pfile,
 /* Print an error message and maybe count it.  */
 
 void
-cpp_pedwarn VPROTO ((cpp_reader * pfile, const char *msgid, ...))
+cpp_pedwarn VPARAMS ((cpp_reader * pfile, const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
   cpp_reader *pfile;
@@ -3360,7 +3360,7 @@ v_cpp_error_with_line (pfile, line, colu
 }
 
 void
-cpp_error_with_line VPROTO ((cpp_reader * pfile, int line, int column,
+cpp_error_with_line VPARAMS ((cpp_reader * pfile, int line, int column,
 			     const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
@@ -3411,7 +3411,7 @@ v_cpp_warning_with_line (pfile, line, co
 }  
 
 void
-cpp_warning_with_line VPROTO ((cpp_reader * pfile, int line, int column,
+cpp_warning_with_line VPARAMS ((cpp_reader * pfile, int line, int column,
 			       const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
@@ -3436,7 +3436,7 @@ cpp_warning_with_line VPROTO ((cpp_reade
 }
 
 void
-cpp_pedwarn_with_line VPROTO ((cpp_reader * pfile, int line, int column,
+cpp_pedwarn_with_line VPARAMS ((cpp_reader * pfile, int line, int column,
 			       const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
@@ -3467,7 +3467,7 @@ cpp_pedwarn_with_line VPROTO ((cpp_reade
    giving specified file name and line number, not current.  */
 
 void
-cpp_pedwarn_with_file_and_line VPROTO ((cpp_reader *pfile, const char *file,
+cpp_pedwarn_with_file_and_line VPARAMS ((cpp_reader *pfile, const char *file,
 					int line, const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
Index: cpplib.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cpplib.h,v
retrieving revision 1.45
diff -u -p -r1.45 cpplib.h
--- cpplib.h	2000/01/12 00:35:36	1.45
+++ cpplib.h	2000/01/19 22:51:35
@@ -722,24 +722,24 @@ extern void cpp_assert PARAMS ((cpp_read
 extern void cpp_undef  PARAMS ((cpp_reader *, unsigned char *));
 extern void cpp_unassert PARAMS ((cpp_reader *, unsigned char *));
 
-extern void cpp_error PVPROTO ((cpp_reader *, const char *, ...))
+extern void cpp_error PARAMS ((cpp_reader *, const char *, ...))
   ATTRIBUTE_PRINTF_2;
-extern void cpp_warning PVPROTO ((cpp_reader *, const char *, ...))
+extern void cpp_warning PARAMS ((cpp_reader *, const char *, ...))
   ATTRIBUTE_PRINTF_2;
-extern void cpp_pedwarn PVPROTO ((cpp_reader *, const char *, ...))
+extern void cpp_pedwarn PARAMS ((cpp_reader *, const char *, ...))
   ATTRIBUTE_PRINTF_2;
-extern void cpp_error_with_line PVPROTO ((cpp_reader *, int, int, const char *, ...))
+extern void cpp_error_with_line PARAMS ((cpp_reader *, int, int, const char *, ...))
   ATTRIBUTE_PRINTF_4;
-extern void cpp_warning_with_line PVPROTO ((cpp_reader *, int, int, const char *, ...))
+extern void cpp_warning_with_line PARAMS ((cpp_reader *, int, int, const char *, ...))
   ATTRIBUTE_PRINTF_4;
-extern void cpp_pedwarn_with_line PVPROTO ((cpp_reader *, int, int, const char *, ...))
+extern void cpp_pedwarn_with_line PARAMS ((cpp_reader *, int, int, const char *, ...))
   ATTRIBUTE_PRINTF_4;
-extern void cpp_pedwarn_with_file_and_line PVPROTO ((cpp_reader *, const char *, int, const char *, ...))
+extern void cpp_pedwarn_with_file_and_line PARAMS ((cpp_reader *, const char *, int, const char *, ...))
   ATTRIBUTE_PRINTF_4;
-extern void cpp_message_from_errno PROTO ((cpp_reader *, int, const char *));
-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_message_from_errno PARAMS ((cpp_reader *, int, const char *));
+extern void cpp_error_from_errno PARAMS ((cpp_reader *, const char *));
+extern void cpp_perror_with_name PARAMS ((cpp_reader *, const char *));
+extern void v_cpp_message PARAMS ((cpp_reader *, int, const char *, va_list));
 
 extern void cpp_grow_buffer PARAMS ((cpp_reader *, long));
 extern cpp_buffer *cpp_push_buffer PARAMS ((cpp_reader *,
@@ -768,29 +768,29 @@ extern void output_line_command		PARAMS 
 						 enum file_change_code));
 
 /* From cpperror.c */
-extern void cpp_fatal PVPROTO ((cpp_reader *, const char *, ...))
+extern void cpp_fatal PARAMS ((cpp_reader *, const char *, ...))
   ATTRIBUTE_PRINTF_2;
-extern void cpp_message PVPROTO ((cpp_reader *, int, const char *, ...))
+extern void cpp_message PARAMS ((cpp_reader *, int, const char *, ...))
   ATTRIBUTE_PRINTF_3;
-extern void cpp_pfatal_with_name PROTO ((cpp_reader *, const char *))
+extern void cpp_pfatal_with_name PARAMS ((cpp_reader *, const char *))
   ATTRIBUTE_NORETURN;
-extern void cpp_file_line_for_message PROTO ((cpp_reader *, const char *,
+extern void cpp_file_line_for_message PARAMS ((cpp_reader *, const char *,
 					      int, int));
-extern void cpp_print_containing_files PROTO ((cpp_reader *));
-extern void cpp_notice PVPROTO ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
+extern void cpp_print_containing_files PARAMS ((cpp_reader *));
+extern void cpp_notice PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
 
 /* In cppfiles.c */
-extern void simplify_pathname		PROTO ((char *));
-extern void merge_include_chains	PROTO ((struct cpp_options *));
-extern int find_include_file		PROTO ((cpp_reader *, const char *,
+extern void simplify_pathname		PARAMS ((char *));
+extern void merge_include_chains	PARAMS ((struct cpp_options *));
+extern int find_include_file		PARAMS ((cpp_reader *, const char *,
 						struct file_name_list *,
 						struct include_hash **,
 						int *));
-extern int finclude			PROTO ((cpp_reader *, int,
+extern int finclude			PARAMS ((cpp_reader *, int,
 					        struct include_hash *));
-extern void deps_output			PROTO ((cpp_reader *,
+extern void deps_output			PARAMS ((cpp_reader *,
 						const char *, int));
-extern struct include_hash *include_hash PROTO ((cpp_reader *, const char *, int));
+extern struct include_hash *include_hash PARAMS ((cpp_reader *, const char *, int));
 
 #ifndef INCLUDE_LEN_FUDGE
 #define INCLUDE_LEN_FUDGE 0


More information about the Gcc-patches mailing list