2009-12-15 21:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/include/hbinit.h
    ! fixed typo in section name in last commit - thanks to Tamas again
    * in C++ mode encapsulate startup functions inside
      'extern "C" { ... }' to eliminate reallocation problems
This commit is contained in:
Przemyslaw Czerpak
2009-12-15 20:36:02 +00:00
parent 791d16c3fe
commit 850fdf166a
2 changed files with 9 additions and 1 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-15 21:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbinit.h
! fixed typo in section name in last commit - thanks to Tamas again
* in C++ mode encapsulate startup functions inside
'extern "C" { ... }' to eliminate reallocation problems
2009-12-15 21:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbinit.h
* use more portable asm() directive instead of __asm__()

View File

@@ -125,13 +125,15 @@ extern HB_EXPORT PHB_SYMB hb_vmProcessSymbols( PHB_SYMB pSymbols, USHORT uiSymbo
HB_CALL_ON_STARTUP_END( func )
#define HB_CALL_ON_STARTUP_BEGIN( func ) \
HB_EXTERN_BEGIN \
static void func( void ) \
{
#define HB_CALL_ON_STARTUP_END( func ) \
} \
HB_INIT_FUNCTION_REF( func ) \
asm ( ".section .init\n\tcall " HB_MACRO2STRING( func ) "\n\t.section .init\n\t" );
HB_EXTERN_END \
asm ( ".section .init\n\tcall " HB_MACRO2STRING( func ) "\n\t.section .text\n\t" );
#define HB_INIT_FUNCTION_REF( func ) \