From 7f5266e4a2e1cfa243ffc6f01184340880a37b11 Mon Sep 17 00:00:00 2001 From: Kp Date: Tue, 1 Jan 2013 05:22:42 +0000 Subject: [PATCH] Make diagnostic_message forward directly to editor_status --- editor/med.c | 14 -------------- include/editor/editor.h | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/editor/med.c b/editor/med.c index 738654903..8424e2709 100644 --- a/editor/med.c +++ b/editor/med.c @@ -208,20 +208,6 @@ void clear_editor_status(void) } -void diagnostic_message( const char *format, ... ) -{ - char diag_line[DIAGNOSTIC_MESSAGE_MAX]; - - va_list ap; - - va_start(ap, format); - vsprintf(diag_line, format, ap); - va_end(ap); - - editor_status(diag_line); -} - - static char sub_status_line[DIAGNOSTIC_MESSAGE_MAX]; void editor_sub_status( const char *format, ... ) diff --git a/include/editor/editor.h b/include/editor/editor.h index 639de274e..e41a4466a 100644 --- a/include/editor/editor.h +++ b/include/editor/editor.h @@ -496,7 +496,7 @@ extern int med_create_duplicate_segment(struct segment *sp); extern int get_free_segment_number(void); // Diagnostic message. -extern void diagnostic_message(const char *format, ... ); +#define diagnostic_message editor_status // Status Icon. extern void print_status_icon( char icon[1], int position );