From 95f7efb18ef47b5e7c7bf80d93e86501a3fa2d00 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 7 Mar 2010 16:32:18 +0000 Subject: [PATCH] 2010-03-07 17:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * utils/hbmk2/hbmk2.prg ! Cosmetic fix to generated temp stub file. Normally nobody sees this file, but anyway. --- harbour/ChangeLog | 5 +++++ harbour/utils/hbmk2/hbmk2.prg | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b785250365..399122617e 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,11 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-03-07 17:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * utils/hbmk2/hbmk2.prg + ! Cosmetic fix to generated temp stub file. Normally nobody + sees this file, but anyway. + 2010-03-07 17:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbpgsql/tests/simple.prg ! Fixed date in SQL command to work regardless of mm/dd diff --git a/harbour/utils/hbmk2/hbmk2.prg b/harbour/utils/hbmk2/hbmk2.prg index 2941b0c471..020f86e9bb 100644 --- a/harbour/utils/hbmk2/hbmk2.prg +++ b/harbour/utils/hbmk2/hbmk2.prg @@ -3886,8 +3886,10 @@ FUNCTION hbmk2( aArgs, /* @ */ lPause ) cFile += '' + Chr( 10 ) AEval( array, {| tmp | cFile += 'HB_FUNC_EXTERN( ' + tmp + ' );' + Chr( 10 ) } ) IF l_cCMAIN != NIL - cFile += '' + Chr( 10 ) +; - 'HB_EXTERN_BEGIN' + Chr( 10 ) +; + IF ! Empty( array ) + cFile += '' + Chr( 10 ) + ENDIF + cFile += 'HB_EXTERN_BEGIN' + Chr( 10 ) +; 'void ' + l_cCMAIN + '( void );' + Chr( 10 ) +; 'HB_EXTERN_END' + Chr( 10 ) ENDIF @@ -3896,7 +3898,9 @@ FUNCTION hbmk2( aArgs, /* @ */ lPause ) cFile += '{' + Chr( 10 ) AEval( array, {| tmp | cFile += ' HB_FUNC_EXEC( ' + tmp + ' );' + Chr( 10 ) } ) IF l_cCMAIN != NIL - cFile += '' + Chr( 10 ) + IF ! Empty( array ) + cFile += '' + Chr( 10 ) + ENDIF cFile += ' ' + l_cCMAIN + '();' + Chr( 10 ) ENDIF cFile += '}' + Chr( 10 )