This commit is contained in:
Andi Jahja
2002-01-01 04:12:04 +00:00
parent 3d037fb20b
commit ff14969c2d
2 changed files with 11 additions and 1 deletions

View File

@@ -7,6 +7,13 @@
For example:
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
/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

View File

@@ -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 );