* cppalloc.c: PROTO -> PARAMS.
* cpperror.c: Likewise.
* cppfiles.c: Likewise.
* cpplib.c: Likewise.
* cpplib.h: Likewise.
From-SVN: r31521
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.
#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 ()
}
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;
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;
/* Print an error message. */
void
-cpp_notice VPROTO ((const char *msgid, ...))
+cpp_notice VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *msgid;
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.
/* 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));
}
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;
}
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;
/* 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;
}
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
}
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
}
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
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
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 *,
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