Andi Jahja <harbour@cbn.net.id>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user