2010-09-07 00:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* src/compiler/hbcomp.c
    ! Revisiting non-*nix stdout/stderr usage in compiler.
      From now on the Clipper (and old MS-DOS/Windows tool) 
      compatible behavior is only maintained for MS-DOS Harbour 
      builds, for the rest error messages are output to stderr, 
      regular msgs are output to stdout.
This commit is contained in:
Viktor Szakats
2010-09-06 22:12:08 +00:00
parent 4087753a5a
commit 2775f662f2
2 changed files with 14 additions and 6 deletions

View File

@@ -16,6 +16,14 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-09-07 00:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/compiler/hbcomp.c
! Revisiting non-*nix stdout/stderr usage in compiler.
From now on the Clipper (and old MS-DOS/Windows tool)
compatible behavior is only maintained for MS-DOS Harbour
builds, for the rest error messages are output to stderr,
regular msgs are output to stdout.
2010-09-06 23:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/qtgui/hbqt_hbqgraphicsrectitem.cpp
! Missing EOL @ EOF.

View File

@@ -307,10 +307,10 @@ void hb_compOutStd( HB_COMP_DECL, const char * szMessage )
if( HB_COMP_PARAM->outStdFunc )
HB_COMP_PARAM->outStdFunc( HB_COMP_PARAM->cargo, szMessage );
else
#if defined( HB_OS_UNIX )
fprintf( stdout, "%s", szMessage ); fflush( stdout );
#else
#if defined( HB_OS_DOS )
fprintf( stderr, "%s", szMessage ); fflush( stderr );
#else
fprintf( stdout, "%s", szMessage ); fflush( stdout );
#endif
}
}
@@ -322,10 +322,10 @@ void hb_compOutErr( HB_COMP_DECL, const char * szMessage )
if( HB_COMP_PARAM->outErrFunc )
HB_COMP_PARAM->outErrFunc( HB_COMP_PARAM->cargo, szMessage );
else
#if defined( HB_OS_UNIX )
fprintf( stderr, "%s", szMessage ); fflush( stderr );
#else
#if defined( HB_OS_DOS )
fprintf( stdout, "%s", szMessage ); fflush( stdout );
#else
fprintf( stderr, "%s", szMessage ); fflush( stderr );
#endif
}
}