2010-01-05 19:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    + Added disctinctive static text which is always linked in
      when C++ mm override is active. This makes it easy to
      verify if C++ mm override is activated in an executable.

  * ChangeLog
    ! Fixed messed text in latest hbmk2 changes.

2010-01-05 18:48 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Added support for C++ input files. Now C++ files will be compiled
      in a separate pass where native C++ compiler is used, which
      means that C++ compilation mode is now enforced by using .cpp
      extension. This also means that it's now possible to build
      mixed mode projects with both C and C++ input files.
      In general, this feature makes -cpp option unnecessary, its
      only purpose now is to override default mode.
    + Added option to override standard C++ memory management functions
      with Harbour ones.
         Enable with option: -hbcppmm (cmdline) or hbcppmm=yes (in .hbc files)
      NOTE1: Suggestions for better names are welcome.
      NOTE2: hbide will now crash with mingw if this option is enabled.
             Any idea why?
    ; Please test.
This commit is contained in:
Viktor Szakats
2010-01-05 18:16:14 +00:00
parent 1cf66dcc83
commit bf7a794d98
2 changed files with 20 additions and 2 deletions

View File

@@ -17,6 +17,15 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-01-05 19:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
+ Added disctinctive static text which is always linked in
when C++ mm override is active. This makes it easy to
verify if C++ mm override is activated in an executable.
* ChangeLog
! Fixed messed text in latest hbmk2 changes.
2010-01-05 18:48 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
* utils/hbmk2/hbmk2.hu_HU.po
@@ -26,10 +35,14 @@
means that C++ compilation mode is now enforced by using .cpp
extension. This also means that it's now possible to build
mixed mode projects with both C and C++ input files.
Enable with option: -hbcppmm (cmdline) or hbcppmm=yes (in .hbc files)
NOTE: Suggestions for better names are welcome.
In general, this feature makes -cpp option unnecessary, its
only purpose now is to override default mode.
+ Added option to override standard C++ memory management functions
with Harbour ones.
Enable with option: -hbcppmm (cmdline) or hbcppmm=yes (in .hbc files)
NOTE1: Suggestions for better names are welcome.
NOTE2: hbide will now crash with mingw if this option is enabled.
Any idea why?
; Please test.
* utils/hbmk2/hbmk2.prg

View File

@@ -3874,6 +3874,11 @@ FUNCTION hbmk( aArgs, /* @ */ lPause )
'' + Chr( 10 ) +;
'#if defined( __cplusplus )' + Chr( 10 ) +;
'' + Chr( 10 ) +;
'const char * __hbmk2_hbcppmm( void )' + Chr( 10 ) +;
'{' + Chr( 10 ) +;
' return "HBCPPMM";' + Chr( 10 ) +;
'}' + Chr( 10 ) +;
'' + Chr( 10 ) +;
'void * operator new[]( size_t nSize )' + Chr( 10 ) +;
'{' + Chr( 10 ) +;
' return hb_xgrab( nSize );' + Chr( 10 ) +;