cppalloc.c: PROTO -> PARAMS.

* cppalloc.c: PROTO -> PARAMS.
        * cpperror.c: Likewise.
        * cppfiles.c: Likewise.
        * cpplib.c: Likewise.
        * cpplib.h: Likewise.

From-SVN: r31521
This commit is contained in:
Kaveh R. Ghazi 2000-01-19 22:52:43 +00:00 committed by Kaveh Ghazi
parent 299d06ad4a
commit f84c201879
6 changed files with 55 additions and 49 deletions

View File

@ -1,5 +1,11 @@
2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 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-protos.h: PROTO -> PARAMS.
* config/arm/arm.c: Likewise. * config/arm/arm.c: Likewise.
* config/c4x/c4x.c: Likewise. * config/c4x/c4x.c: Likewise.

View File

@ -26,7 +26,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "system.h" #include "system.h"
#include "cpplib.h" #include "cpplib.h"
static void memory_full PROTO ((void)) ATTRIBUTE_NORETURN; static void memory_full PARAMS ((void)) ATTRIBUTE_NORETURN;
static void static void
memory_full () memory_full ()

View File

@ -124,7 +124,7 @@ v_cpp_message (pfile, is_error, msgid, ap)
} }
void 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 #ifndef ANSI_PROTOTYPES
cpp_reader *pfile; cpp_reader *pfile;
@ -152,7 +152,7 @@ cpp_message VPROTO ((cpp_reader *pfile, int is_error, const char *msgid, ...))
CPP_FATAL_ERRORS. */ CPP_FATAL_ERRORS. */
void void
cpp_fatal VPROTO ((cpp_reader *pfile, const char *msgid, ...)) cpp_fatal VPARAMS ((cpp_reader *pfile, const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
cpp_reader *pfile; cpp_reader *pfile;
@ -188,7 +188,7 @@ cpp_pfatal_with_name (pfile, name)
/* Print an error message. */ /* Print an error message. */
void void
cpp_notice VPROTO ((const char *msgid, ...)) cpp_notice VPARAMS ((const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
const char *msgid; const char *msgid;

View File

@ -33,27 +33,27 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
so it's static anyway. */ so it's static anyway. */
static struct include_hash *redundant_include_p static struct include_hash *redundant_include_p
PROTO ((cpp_reader *, PARAMS ((cpp_reader *,
struct include_hash *, struct include_hash *,
struct file_name_list *)); 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 *)); const char *));
static char *read_filename_string PROTO ((int, FILE *)); static char *read_filename_string PARAMS ((int, FILE *));
static char *remap_filename PROTO ((cpp_reader *, char *, static char *remap_filename PARAMS ((cpp_reader *, char *,
struct file_name_list *)); 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)); 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 *)); const char *));
static void initialize_input_buffer PROTO ((cpp_reader *, int, static void initialize_input_buffer PARAMS ((cpp_reader *, int,
struct stat *)); struct stat *));
static int file_cleanup PROTO ((cpp_buffer *, cpp_reader *)); static int file_cleanup PARAMS ((cpp_buffer *, cpp_reader *));
static void find_position PROTO ((U_CHAR *, U_CHAR *, static void find_position PARAMS ((U_CHAR *, U_CHAR *,
unsigned long *, unsigned long *,
unsigned long *)); unsigned long *));
#if 0 #if 0
static void hack_vms_include_specification PROTO ((char *)); static void hack_vms_include_specification PARAMS ((char *));
#endif #endif
/* Windows does not natively support inodes, and neither does MSDOS. /* Windows does not natively support inodes, and neither does MSDOS.

View File

@ -37,13 +37,13 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Forward declarations. */ /* Forward declarations. */
static const char *my_strerror PROTO ((int)); static const char *my_strerror PARAMS ((int));
static void validate_else PROTO ((cpp_reader *, const char *)); static void validate_else PARAMS ((cpp_reader *, const char *));
static HOST_WIDEST_INT eval_if_expression PROTO ((cpp_reader *)); 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 *)); 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_name PARAMS ((cpp_reader *, int));
static void parse_string PARAMS ((cpp_reader *, int)); static void parse_string PARAMS ((cpp_reader *, int));
@ -3258,7 +3258,7 @@ v_cpp_error (pfile, msgid, ap)
} }
void void
cpp_error VPROTO ((cpp_reader * pfile, const char *msgid, ...)) cpp_error VPARAMS ((cpp_reader * pfile, const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
cpp_reader *pfile; cpp_reader *pfile;
@ -3297,7 +3297,7 @@ v_cpp_warning (pfile, msgid, ap)
} }
void void
cpp_warning VPROTO ((cpp_reader * pfile, const char *msgid, ...)) cpp_warning VPARAMS ((cpp_reader * pfile, const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
cpp_reader *pfile; cpp_reader *pfile;
@ -3319,7 +3319,7 @@ cpp_warning VPROTO ((cpp_reader * pfile, const char *msgid, ...))
/* Print an error message and maybe count it. */ /* Print an error message and maybe count it. */
void void
cpp_pedwarn VPROTO ((cpp_reader * pfile, const char *msgid, ...)) cpp_pedwarn VPARAMS ((cpp_reader * pfile, const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
cpp_reader *pfile; cpp_reader *pfile;
@ -3360,7 +3360,7 @@ v_cpp_error_with_line (pfile, line, column, msgid, ap)
} }
void 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, ...)) const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
@ -3411,7 +3411,7 @@ v_cpp_warning_with_line (pfile, line, column, msgid, ap)
} }
void 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, ...)) const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
@ -3436,7 +3436,7 @@ cpp_warning_with_line VPROTO ((cpp_reader * pfile, int line, int column,
} }
void 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, ...)) const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
@ -3467,7 +3467,7 @@ cpp_pedwarn_with_line VPROTO ((cpp_reader * pfile, int line, int column,
giving specified file name and line number, not current. */ giving specified file name and line number, not current. */
void 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, ...)) int line, const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES

View File

@ -722,24 +722,24 @@ extern void cpp_assert PARAMS ((cpp_reader *, unsigned char *));
extern void cpp_undef PARAMS ((cpp_reader *, unsigned char *)); extern void cpp_undef PARAMS ((cpp_reader *, unsigned char *));
extern void cpp_unassert 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; ATTRIBUTE_PRINTF_2;
extern void cpp_warning PVPROTO ((cpp_reader *, const char *, ...)) extern void cpp_warning PARAMS ((cpp_reader *, const char *, ...))
ATTRIBUTE_PRINTF_2; ATTRIBUTE_PRINTF_2;
extern void cpp_pedwarn PVPROTO ((cpp_reader *, const char *, ...)) extern void cpp_pedwarn PARAMS ((cpp_reader *, const char *, ...))
ATTRIBUTE_PRINTF_2; 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; 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; 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; 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; ATTRIBUTE_PRINTF_4;
extern void cpp_message_from_errno PROTO ((cpp_reader *, int, const char *)); extern void cpp_message_from_errno PARAMS ((cpp_reader *, int, const char *));
extern void cpp_error_from_errno PROTO ((cpp_reader *, const char *)); extern void cpp_error_from_errno PARAMS ((cpp_reader *, const char *));
extern void cpp_perror_with_name PROTO ((cpp_reader *, const char *)); extern void cpp_perror_with_name PARAMS ((cpp_reader *, const char *));
extern void v_cpp_message PROTO ((cpp_reader *, int, const char *, va_list)); extern void v_cpp_message PARAMS ((cpp_reader *, int, const char *, va_list));
extern void cpp_grow_buffer PARAMS ((cpp_reader *, long)); extern void cpp_grow_buffer PARAMS ((cpp_reader *, long));
extern cpp_buffer *cpp_push_buffer PARAMS ((cpp_reader *, extern cpp_buffer *cpp_push_buffer PARAMS ((cpp_reader *,
@ -768,29 +768,29 @@ extern void output_line_command PARAMS ((cpp_reader *,
enum file_change_code)); enum file_change_code));
/* From cpperror.c */ /* From cpperror.c */
extern void cpp_fatal PVPROTO ((cpp_reader *, const char *, ...)) extern void cpp_fatal PARAMS ((cpp_reader *, const char *, ...))
ATTRIBUTE_PRINTF_2; 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; 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; 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)); int, int));
extern void cpp_print_containing_files PROTO ((cpp_reader *)); extern void cpp_print_containing_files PARAMS ((cpp_reader *));
extern void cpp_notice PVPROTO ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1; extern void cpp_notice PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
/* In cppfiles.c */ /* In cppfiles.c */
extern void simplify_pathname PROTO ((char *)); extern void simplify_pathname PARAMS ((char *));
extern void merge_include_chains PROTO ((struct cpp_options *)); extern void merge_include_chains PARAMS ((struct cpp_options *));
extern int find_include_file PROTO ((cpp_reader *, const char *, extern int find_include_file PARAMS ((cpp_reader *, const char *,
struct file_name_list *, struct file_name_list *,
struct include_hash **, struct include_hash **,
int *)); int *));
extern int finclude PROTO ((cpp_reader *, int, extern int finclude PARAMS ((cpp_reader *, int,
struct include_hash *)); struct include_hash *));
extern void deps_output PROTO ((cpp_reader *, extern void deps_output PARAMS ((cpp_reader *,
const char *, int)); 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 #ifndef INCLUDE_LEN_FUDGE
#define INCLUDE_LEN_FUDGE 0 #define INCLUDE_LEN_FUDGE 0