2008-10-27 00:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

* source/common/hbver.c
    * Changed to include bitness even for DJGPP.
    * Changed "(* bit)" to "(*-bit)"
    ; NOTE: We have __ARCH*BIT__ but this macro is misleading 
            and cannot be used properly on platforms where the 
            compiler is able to generate multiple targets in 
            one build pass. Such system is Darwin/OSX.
            I'd suggest to consider removing this macro, and 
            rather adding a function to return bitness.
            Any opininons?
This commit is contained in:
Viktor Szakats
2008-10-26 23:04:57 +00:00
parent 79708d30b0
commit 32909568c0
2 changed files with 16 additions and 8 deletions

View File

@@ -8,6 +8,18 @@
2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
*/
2008-10-27 00:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbver.c
* Changed to include bitness even for DJGPP.
* Changed "(* bit)" to "(*-bit)"
; NOTE: We have __ARCH*BIT__ but this macro is misleading
and cannot be used properly on platforms where the
compiler is able to generate multiple targets in
one build pass. Such system is Darwin/OSX.
I'd suggest to consider removing this macro, and
rather adding a function to return bitness.
Any opininons?
2008-10-26 22:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbfopen.c
* Changed hb_fopen() to use fopen_s(), secure version of

View File

@@ -528,22 +528,18 @@ char * hb_verCompiler( void )
hb_strncpy( pszCompiler, "(unknown)", COMPILER_BUF_SIZE - 1 );
#if defined(__DJGPP__)
snprintf( szSub, sizeof( szSub ), " (DJGPP %i.%02i)", ( int ) __DJGPP__, ( int ) __DJGPP_MINOR__ );
hb_strncat( pszCompiler, szSub, COMPILER_BUF_SIZE - 1 );
#else
#endif
#if defined( HB_ARCH_16BIT )
hb_strncat( pszCompiler, " (16 bit)", COMPILER_BUF_SIZE - 1 );
hb_strncat( pszCompiler, " (16-bit)", COMPILER_BUF_SIZE - 1 );
#elif defined( HB_ARCH_32BIT )
hb_strncat( pszCompiler, " (32 bit)", COMPILER_BUF_SIZE - 1 );
hb_strncat( pszCompiler, " (32-bit)", COMPILER_BUF_SIZE - 1 );
#elif defined( HB_ARCH_64BIT )
hb_strncat( pszCompiler, " (64 bit)", COMPILER_BUF_SIZE - 1 );
hb_strncat( pszCompiler, " (64-bit)", COMPILER_BUF_SIZE - 1 );
#endif
#endif
return pszCompiler;
}