From bccf563b5d868dd1721307b864d884a4783af66b Mon Sep 17 00:00:00 2001 From: kenner Date: Sat, 3 Feb 2001 01:03:35 +0000 Subject: [PATCH] * diagnostic.h: Add missing "extern" in all declarations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39418 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 +++ gcc/diagnostic.h | 90 ++++++++++++++++++++++++++++++-------------------------- 2 files changed, 52 insertions(+), 42 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c0e68749ea..4cfb125ba58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 2 20:03:50 2001 Richard Kenner + + * diagnostic.h: Add missing "extern" in all declarations. + 2001-02-02 Alex Samuel * Makefile.in (gcc_gxx_target_include_dir): Generate dynamically diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index b64cb67385a..3ae06a71370 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -1,5 +1,5 @@ /* Various declarations for language-independent diagnostics subroutines. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2001 Free Software Foundation, Inc. Contributed by Gabriel Dos Reis This file is part of GNU CC. @@ -166,46 +166,52 @@ extern int diagnostic_message_length_per_line; extern output_buffer *diagnostic_buffer; /* Prototypes */ -void set_diagnostic_context PARAMS ((diagnostic_context *, const char *, - va_list *, const char *, int, int)); -void set_fatal_function PARAMS ((void (*) PARAMS ((const char *, - va_list *)))); -void report_diagnostic PARAMS ((diagnostic_context *)); -void initialize_diagnostics PARAMS ((void)); -void reshape_diagnostic_buffer PARAMS ((void)); -void default_initialize_buffer PARAMS ((output_buffer *)); -void init_output_buffer PARAMS ((output_buffer *, const char *, int)); -void flush_diagnostic_buffer PARAMS ((void)); -void output_clear PARAMS ((output_buffer *)); -const char *output_get_prefix PARAMS ((const output_buffer *)); -const char *output_last_position PARAMS ((const output_buffer *)); -void output_set_prefix PARAMS ((output_buffer *, const char *)); -void output_destroy_prefix PARAMS ((output_buffer *)); -void output_set_maximum_length PARAMS ((output_buffer *, int)); -void output_emit_prefix PARAMS ((output_buffer *)); -void output_add_newline PARAMS ((output_buffer *)); -void output_add_space PARAMS ((output_buffer *)); -int output_space_left PARAMS ((const output_buffer *)); -void output_append PARAMS ((output_buffer *, const char *, - const char *)); -void output_add_character PARAMS ((output_buffer *, int)); -void output_decimal PARAMS ((output_buffer *, int)); -void output_add_string PARAMS ((output_buffer *, const char *)); -const char *output_finalize_message PARAMS ((output_buffer *)); -void output_clear_message_text PARAMS ((output_buffer *)); -void output_printf PARAMS ((output_buffer *, const char *, - ...)) ATTRIBUTE_PRINTF_2; -int output_is_line_wrapping PARAMS ((output_buffer *)); -void set_message_prefixing_rule PARAMS ((int)); -void output_verbatim PARAMS ((output_buffer *, const char *, ...)) - ATTRIBUTE_PRINTF_2; -void verbatim PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1; -char *context_as_prefix PARAMS ((const char *, int, int)); -char *file_name_as_prefix PARAMS ((const char *)); -int error_module_changed PARAMS ((void)); -void record_last_error_module PARAMS ((void)); -int error_function_changed PARAMS ((void)); -void record_last_error_function PARAMS ((void)); -void report_problematic_module PARAMS ((output_buffer *)); +extern void set_diagnostic_context PARAMS ((diagnostic_context *, + const char *, va_list *, + const char *, int, int)); +extern void set_fatal_function PARAMS ((void (*) + PARAMS ((const char *, + va_list *)))); +extern void report_diagnostic PARAMS ((diagnostic_context *)); +extern void initialize_diagnostics PARAMS ((void)); +extern void reshape_diagnostic_buffer PARAMS ((void)); +extern void default_initialize_buffer PARAMS ((output_buffer *)); +extern void init_output_buffer PARAMS ((output_buffer *, + const char *, int)); +extern void flush_diagnostic_buffer PARAMS ((void)); +extern void output_clear PARAMS ((output_buffer *)); +extern const char *output_get_prefix PARAMS ((const output_buffer *)); +extern const char *output_last_position PARAMS ((const output_buffer *)); +extern void output_set_prefix PARAMS ((output_buffer *, + const char *)); +extern void output_destroy_prefix PARAMS ((output_buffer *)); +extern void output_set_maximum_length PARAMS ((output_buffer *, int)); +extern void output_emit_prefix PARAMS ((output_buffer *)); +extern void output_add_newline PARAMS ((output_buffer *)); +extern void output_add_space PARAMS ((output_buffer *)); +extern int output_space_left PARAMS ((const output_buffer *)); +extern void output_append PARAMS ((output_buffer *, const char *, + const char *)); +extern void output_add_character PARAMS ((output_buffer *, int)); +extern void output_decimal PARAMS ((output_buffer *, int)); +extern void output_add_string PARAMS ((output_buffer *, + const char *)); +extern const char *output_finalize_message PARAMS ((output_buffer *)); +extern void output_clear_message_text PARAMS ((output_buffer *)); +extern void output_printf PARAMS ((output_buffer *, const char *, + ...)) ATTRIBUTE_PRINTF_2; +extern int output_is_line_wrapping PARAMS ((output_buffer *)); +extern void set_message_prefixing_rule PARAMS ((int)); +extern void output_verbatim PARAMS ((output_buffer *, const char *, + ...)) ATTRIBUTE_PRINTF_2; +extern void verbatim PARAMS ((const char *, ...)) + ATTRIBUTE_PRINTF_1; +extern char *context_as_prefix PARAMS ((const char *, int, int)); +extern char *file_name_as_prefix PARAMS ((const char *)); +extern int error_module_changed PARAMS ((void)); +extern void record_last_error_module PARAMS ((void)); +extern int error_function_changed PARAMS ((void)); +extern void record_last_error_function PARAMS ((void)); +extern void report_problematic_module PARAMS ((output_buffer *)); #endif /* __GCC_DIAGNOSTIC_H__ */ -- 2.11.4.GIT