2009-06-05 17:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    * -debugstub internal switch will now echo the stub source 
      to stdout instead of keeping the temp file around.
This commit is contained in:
Viktor Szakats
2009-06-05 15:33:49 +00:00
parent a7005290de
commit a0b9ad87d9
2 changed files with 11 additions and 5 deletions

View File

@@ -17,6 +17,11 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-06-05 17:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
* -debugstub internal switch will now echo the stub source
to stdout instead of keeping the temp file around.
2009-06-05 17:04 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
* cleanup in some declarations

View File

@@ -3096,6 +3096,11 @@ FUNCTION hbmk( aArgs, /* @ */ lPause, /* @ */ lUTF8 )
'#endif' + hb_osNewLine() )
ENDIF
FClose( fhnd )
IF hbmk[ _HBMK_lDEBUGSTUB ]
OutStd( "C stub dump:" + hb_osNewLine() )
OutStd( hb_MemoRead( s_cCSTUB ) )
ENDIF
ELSE
hbmk_OutErr( hbmk, I_( "Warning: Stub helper .c program couldn't be created." ) )
IF ! hbmk[ _HBMK_lINC ]
@@ -3640,11 +3645,7 @@ FUNCTION hbmk( aArgs, /* @ */ lPause, /* @ */ lUTF8 )
/* Cleanup */
IF ! Empty( s_cCSTUB )
IF hbmk[ _HBMK_lDEBUGSTUB ]
hbmk_OutStd( hbmk, hb_StrFormat( "Stub kept for debug: %1$s", s_cCSTUB ) )
ELSE
FErase( s_cCSTUB )
ENDIF
FErase( s_cCSTUB )
FErase( FN_DirExtSet( s_cCSTUB, cWorkDir, cObjExt ) )
ENDIF
IF ! hbmk[ _HBMK_lINC ] .OR. s_lCLEAN