diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3270e202e0..27f7dd2699 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -7,6 +7,13 @@ For example: 2002-12-01 23:12 UTC+0100 Foo Bar */ + /n1 = no implicit proc and no startup proc + /n- = generates implicit procedure + Note: Previously, Harbour did not create (implicit )starting procedure + when we did not supply /n, fixed. Now compiling prg without /n + creates (implicit) starting procedure. + * source/compiler/genc.c + ! Change routine for embedding HB_FS_FIRST to generated C-codes to conform with the new startup generation routines * source/compiler/harbour.c + BOOL hb_comp_bNoStartUp = FALSE, initialization for option to create diff --git a/harbour/source/vm/fm.c b/harbour/source/vm/fm.c index ab26d0dfa6..18481accb3 100644 --- a/harbour/source/vm/fm.c +++ b/harbour/source/vm/fm.c @@ -262,7 +262,10 @@ void HB_EXPORT * hb_xgrab( ULONG ulSize ) /* allocates fixed memory, exi #else - pMem = malloc( ulSize ); + #define ALIGN_SIZE sizeof (double) + #define RESERVE_SIZE (((sizeof (ulSize) + (ALIGN_SIZE - 1)) \ + / ALIGN_SIZE) * ALIGN_SIZE) + pMem = malloc( ulSize + RESERVE_SIZE ); if( ! pMem ) hb_errInternal( HB_EI_XGRABALLOC, NULL, NULL, NULL );