From c003992af6319067d9c18098740b83fe2b4ee4ca Mon Sep 17 00:00:00 2001 From: gdr Date: Sun, 2 Jun 2002 19:06:30 +0000 Subject: * diagnostic.h (struct diagnostic_context): Add new member internal_error. (internal_error_function): Remove declaration. * diagnostic.c (internal_error_function): Remove definition.. (internal_error): Adjust use. ada/ * misc.c (gnat_init): Adjust setting of internal_error_function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54179 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/diagnostic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/diagnostic.h') diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 925134af48f..3762136d0b6 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -203,6 +203,9 @@ struct diagnostic_context /* This function is called after the diagnostic message is printed. */ void (*end_diagnostic) PARAMS ((output_buffer *, diagnostic_context *)); + /* Client hook to report an internal error. */ + void (*internal_error) PARAMS ((const char *, va_list *)); + /* Hook for front-end extensions. */ void *x_data; }; @@ -275,9 +278,6 @@ extern diagnostic_context *global_dc; extern void set_diagnostic_context PARAMS ((diagnostic_context *, const char *, va_list *, const char *, int, int)); -extern void set_internal_error_function PARAMS ((void (*) - PARAMS ((const char *, - va_list *)))); extern void report_diagnostic PARAMS ((diagnostic_context *)); extern void diagnostic_initialize PARAMS ((diagnostic_context *)); extern void init_output_buffer PARAMS ((output_buffer *, -- cgit v1.2.1