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:
parent
299d06ad4a
commit
f84c201879
@ -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.
|
||||
|
@ -26,7 +26,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#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 ()
|
||||
|
@ -124,7 +124,7 @@ v_cpp_message (pfile, is_error, msgid, ap)
|
||||
}
|
||||
|
||||
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, int is_error, const char *msgid, ...))
|
||||
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;
|
||||
|
@ -33,27 +33,27 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
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.
|
||||
|
24
gcc/cpplib.c
24
gcc/cpplib.c
@ -37,13 +37,13 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* 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, const char *msgid, ...))
|
||||
/* 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, column, msgid, ap)
|
||||
}
|
||||
|
||||
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, column, msgid, ap)
|
||||
}
|
||||
|
||||
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_reader * pfile, int line, int column,
|
||||
}
|
||||
|
||||
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_reader * pfile, int line, int column,
|
||||
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
|
||||
|
46
gcc/cpplib.h
46
gcc/cpplib.h
@ -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_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 ((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
|
||||
|
Loading…
x
Reference in New Issue
Block a user