Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for ep/src/message.c between version 1.4 and 1.5

version 1.4, 2002/02/06 21:44:11 version 1.5, 2002/02/12 17:20:16
Line 35  msg_print(char *fmt, ...)
Line 35  msg_print(char *fmt, ...)
         vprintf(fmt, ap);          vprintf(fmt, ap);
         fflush(stdout);          fflush(stdout);
 #else  #else
         fprintf(stderr, "%s-warning: vfprintf() function not available\n", argv0);          fprintf(stderr, "%s: warning: vfprintf() function not available\n", argv0);
         fprintf(stderr, "%s: [%s]\n", argv0, fmt);          fprintf(stderr, "%s: [%s]\n", argv0, fmt);
         fflush(stderr);          fflush(stderr);
 #endif  #endif
Line 53  msg_error_print(char *fmt, ...)
Line 53  msg_error_print(char *fmt, ...)
 #if MENU  #if MENU
   
 #if DEBUG  #if DEBUG
         printw( "%s-ERROR: ", argv0);          printw( "%s: ERROR: ", argv0);
 #else  #else
         printw( "%s-error: ", argv0);          printw( "%s: error: ", argv0);
 #endif  #endif
   
         vwprintw(stdscr, fmt, ap);          vwprintw(stdscr, fmt, ap);
Line 64  msg_error_print(char *fmt, ...)
Line 64  msg_error_print(char *fmt, ...)
 #if HAVE_VPRINTF  #if HAVE_VPRINTF
   
 #if DEBUG  #if DEBUG
         fprintf(stderr, "%s-ERROR: ", argv0);          fprintf(stderr, "%s: ERROR: ", argv0);
 #else  #else
         fprintf(stderr, "%s-error: ", argv0);          fprintf(stderr, "%s: error: ", argv0);
 #endif  #endif
   
         vfprintf(stderr, fmt, ap);          vfprintf(stderr, fmt, ap);
 #else  #else
         fprintf(stderr, "%s-warning: vfprintf() function not available\n", argv0);          fprintf(stderr, "%s: warning: vfprintf() function not available\n", argv0);
         fprintf(stderr, "%s-error: [%s]\n", argv0, fmt);          fprintf(stderr, "%s: error: [%s]\n", argv0, fmt);
 #endif  #endif
         fflush(stderr);          fflush(stderr);
 #endif  #endif
Line 88  msg_warn_print(char *fmt, ...)
Line 88  msg_warn_print(char *fmt, ...)
   
         va_start(ap, fmt);          va_start(ap, fmt);
 #if MENU  #if MENU
         printw( "%s-warning: ", argv0);          printw( "%s: warning: ", argv0);
         vwprintw(stdscr, fmt, ap);          vwprintw(stdscr, fmt, ap);
         refresh();          refresh();
 #else  #else
 #if HAVE_VPRINTF  #if HAVE_VPRINTF
         fprintf(stderr, "%s-warning: ", argv0);          fprintf(stderr, "%s: warning: ", argv0);
         vfprintf(stderr, fmt, ap);          vfprintf(stderr, fmt, ap);
 #else  #else
         fprintf(stderr, "%s-warning: vfprintf() function not available\n", argv0);          fprintf(stderr, "%s: warning: vfprintf() function not available\n", argv0);
         fprintf(stderr, "%s-warning: [%s]\n", argv0, fmt);          fprintf(stderr, "%s: warning: [%s]\n", argv0, fmt);
 #endif  #endif
         fflush(stderr);          fflush(stderr);
 #endif  #endif
Line 112  msg_debug_print(char *fmt, ...)
Line 112  msg_debug_print(char *fmt, ...)
   
         va_start(ap, fmt);          va_start(ap, fmt);
 #if MENU  #if MENU
         printw("%s-debug: ", argv0);          printw("%s: debug: ", argv0);
         vwprintw(stdscr, fmt, ap);          vwprintw(stdscr, fmt, ap);
         refresh();          refresh();
 #else  #else
 #if HAVE_VPRINTF  #if HAVE_VPRINTF
         fprintf(stderr, "%s-debug: ", argv0);          fprintf(stderr, "%s: debug: ", argv0);
         vfprintf(stderr, fmt, ap);          vfprintf(stderr, fmt, ap);
 #else  #else
         fprintf(stderr, "%s-warning: vfprintf() function not available\n", argv0);          fprintf(stderr, "%s: warning: vfprintf() function not available\n", argv0);
         fprintf(stderr, "%s-debug: [%s]\n", argv0, fmt);          fprintf(stderr, "%s: debug: [%s]\n", argv0, fmt);
 #endif  #endif
         fflush(stderr);          fflush(stderr);
 #endif  #endif
Line 155  msg_usage_print(void)
Line 155  msg_usage_print(void)
                         argv0);                          argv0);
         fprintf(stderr, " [-- [] [] [] proc 2 ...]\n");          fprintf(stderr, " [-- [] [] [] proc 2 ...]\n");
 }  }
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top