# HG changeset patch # User arpi # Date 1009413240 0 # Node ID 9eb4aa623ab62f256dc6ef04bd8086cb68f4f99d # Parent b987b69d1bd6baf4564ad37098c9a217e9d5b8e0 fflush disappeared? .so? diff -r b987b69d1bd6 -r 9eb4aa623ab6 mp_msg.c --- a/mp_msg.c Wed Dec 26 23:31:30 2001 +0000 +++ b/mp_msg.c Thu Dec 27 00:34:00 2001 +0000 @@ -35,27 +35,33 @@ switch( x&255 ) { case MSGL_FATAL: fprintf( stderr,"%s",tmp ); + fflush(stderr); gtkMessageBox( GTK_MB_FATAL|GTK_MB_SIMPLE,tmp ); break; case MSGL_ERR: fprintf( stderr,"%s",tmp ); + fflush(stderr); gtkMessageBox( GTK_MB_ERROR|GTK_MB_SIMPLE,tmp ); break; case MSGL_WARN: printf( "%s",tmp ); + fflush(stdout); gtkMessageBox( GTK_MB_WARNING|GTK_MB_SIMPLE,tmp ); break; default: printf( "%s",tmp ); + fflush(stdout); } } else #endif if((x&255)<=MSGL_ERR){ // fprintf(stderr,"%%%%%% "); vfprintf(stderr,format, va); + fflush(stderr); } else { // printf("%%%%%% "); vprintf(format, va); + fflush(stdout); } va_end(va); }