From 3451acec83c61ea4dae4ee67dba051546fad1359 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 4 May 2009 21:51:25 +0000 Subject: Remove dead report_print_progname() code. svn path=/branches/BRANCH_6-3/; revision=5283 --- report.c | 39 ++++++++++----------------------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/report.c b/report.c index 17bd8f94..783ed48a 100644 --- a/report.c +++ b/report.c @@ -38,15 +38,6 @@ #define MALLOC(n) xmalloc(n) #define REALLOC(n,s) xrealloc(n,s) -/* If NULL, report will flush stderr, then print on stderr the program - name, a colon and a space. Otherwise, report will call this - function without parameters instead. */ -static void (*report_print_progname) ( -#if __STDC__ - 0 - void -#endif - ); - /* Used by report_build() and report_complete() to accumulate partial messages. */ static unsigned int partial_message_size = 0; @@ -137,18 +128,13 @@ report (FILE *errfp, message, va_alist) else #endif { - if (report_print_progname) - (*report_print_progname) (); - else + fflush (errfp); + if ( *message == '\n' ) { - fflush (errfp); - if ( *message == '\n' ) - { - fputc( '\n', errfp ); - ++message; - } - fprintf (errfp, "%s: ", program_name); + fputc( '\n', errfp ); + ++message; } + fprintf (errfp, "%s: ", program_name); #ifdef VA_START VA_START (args, message); @@ -396,18 +382,13 @@ report_at_line (FILE *errfp, errnum, file_name, line_number, message, va_alist) old_line_number = line_number; } - if (report_print_progname) - (*report_print_progname) (); - else + fflush (errfp); + if ( *message == '\n' ) { - fflush (errfp); - if ( *message == '\n' ) - { - fputc( '\n', errfp ); - ++message; - } - fprintf (errfp, "%s:", program_name); + fputc( '\n', errfp ); + ++message; } + fprintf (errfp, "%s:", program_name); if (file_name != NULL) fprintf (errfp, "%s:%u: ", file_name, line_number); -- cgit v1.2.3