2009-09-16 02:40 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/include/hbvmpub.h
  * harbour/include/hbdefs.h
    * added #if/#endif comments and minor formatting

  * harbour/include/hbsetup.h
    ! disable malloc attribute for GCC < 3.xx

  * harbour/include/hbinit.h
    ! removed unnecessary __HAIKU__ condition

  * harbour/include/hbdate.h
    ! enable MT safe localtime_r() function in HAIKU/BEOS builds

  * harbour/source/common/hbgete.c
    ! enable setenv()/unsetenv() in HAIKU/BEOS builds

  * harbour/source/common/hbprintf.c
    ! removed wrongly added condition which disabled [u]intmax_t for GCC < 3

  * harbour/source/rtl/gtcrs/gtcrs.h
    ! do not redefine existing MAX_SIGNO

  * harbour/source/rtl/hbsocket.c
    ! enabled MT safe socket functions in HAIKU/BEOS builds

  * harbour/config/beos/libs.mk
    ! do not set explicitly GCC internal library paths.
      They are configured in GCC config and should not be overloaded
      in normal builds.

   TOFIX: error code are not properly decoded in HAIKU/BEOS builds.
          It can be seen in hbtest results. It's possible that it's
          HAIKU/BEOS problem not Harbour one.
This commit is contained in:
Przemyslaw Czerpak
2009-09-16 00:41:09 +00:00
parent 6aa14fe50c
commit 89930d14da
11 changed files with 61 additions and 18 deletions

View File

@@ -17,6 +17,41 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-09-16 02:40 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvmpub.h
* harbour/include/hbdefs.h
* added #if/#endif comments and minor formatting
* harbour/include/hbsetup.h
! disable malloc attribute for GCC < 3.xx
* harbour/include/hbinit.h
! removed unnecessary __HAIKU__ condition
* harbour/include/hbdate.h
! enable MT safe localtime_r() function in HAIKU/BEOS builds
* harbour/source/common/hbgete.c
! enable setenv()/unsetenv() in HAIKU/BEOS builds
* harbour/source/common/hbprintf.c
! removed wrongly added condition which disabled [u]intmax_t for GCC < 3
* harbour/source/rtl/gtcrs/gtcrs.h
! do not redefine existing MAX_SIGNO
* harbour/source/rtl/hbsocket.c
! enabled MT safe socket functions in HAIKU/BEOS builds
* harbour/config/beos/libs.mk
! do not set explicitly GCC internal library paths.
They are configured in GCC config and should not be overloaded
in normal builds.
TOFIX: error code are not properly decoded in HAIKU/BEOS builds.
It can be seen in hbtest results. It's possible that it's
HAIKU/BEOS problem not Harbour one.
2009-09-15 20:07 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rdd/dbf1.c
* pacified BCC warning

View File

@@ -3,7 +3,7 @@
#
SYSLIBS :=
SYSLIBPATHS := /system/lib /boot/develop/abi/x86/gcc2/lib
SYSLIBPATHS := /system/lib
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)

View File

@@ -153,7 +153,7 @@ HB_EXTERN_END
#if ( defined( _POSIX_C_SOURCE ) || defined( _XOPEN_SOURCE ) || \
defined( _BSD_SOURCE ) || defined( _SVID_SOURCE ) || \
defined( HB_OS_SUNOS ) ) && \
defined( HB_OS_SUNOS ) || defined( HB_OS_BEOS ) ) && \
! defined( HB_OS_DARWIN_5 ) && !defined( HB_HAS_LOCALTIME_R )
# define HB_HAS_LOCALTIME_R
#endif

View File

@@ -78,7 +78,8 @@
( defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L ) || \
( defined( __DJGPP__ ) && \
( __DJGPP__ > 2 || ( __DJGPP__ == 2 && __DJGPP_MINOR__ >= 4 ) ) ) || \
defined( HB_OS_LINUX ) || defined( HB_OS_DARWIN ) || defined( HB_OS_SUNOS ) || defined( HB_OS_BEOS ) ) )
defined( HB_OS_LINUX ) || defined( HB_OS_DARWIN ) || \
defined( HB_OS_SUNOS ) || defined( HB_OS_BEOS ) ) )
#include <stdint.h>
/* workaround for BCC 5.8 bug */
#if ( defined( __BORLANDC__ ) && __BORLANDC__ >= 1410 )

View File

@@ -112,8 +112,7 @@ extern HB_EXPORT PHB_SYMB hb_vmProcessSymbols( PHB_SYMB pSymbols, USHORT uiSymbo
#define HB_CALL_ON_STARTUP_END( func ) \
}
#elif defined( __GNUC__ ) || defined( __SUNPRO_C ) || defined( __SUNPRO_CC ) || \
defined( __HAIKU__ )
#elif defined( __GNUC__ ) || defined( __SUNPRO_C ) || defined( __SUNPRO_CC )
#if defined( HB_PRAGMA_STARTUP ) || defined( HB_MSC_STARTUP )
#error Wrong macros set for startup code - clean your make/env settings.

View File

@@ -485,13 +485,17 @@
#if defined( __GNUC__ )
#define HB_PRINTF_FORMAT( _nStr, _nParam ) \
__attribute__ (( format (printf, _nStr, _nParam)))
# if ( __GNUC__ >= 3 )
#define HB_MALLOC_ATTR \
__attribute__ (( malloc ))
# else
#define HB_MALLOC_ATTR
# endif
#define HB_HOT_ATTR \
__attribute__ (( hot ))
#define HB_COLD_ATTR \
__attribute__ (( cold ))
#if 0
# if 0
#define HB_NORETURN_ATTR \
__attribute__ (( noreturn ))
# else

View File

@@ -145,13 +145,13 @@ struct _HB_SYMB;
#if !defined( HB_MT_VM )
void * pMemvar; /* memvar pointer ( publics & privates ) */
USHORT uiArea; /* Workarea number */
#endif
#endif /* !HB_MT_VM */
USHORT uiSymNum; /* dynamic symbol number */
#ifndef HB_NO_PROFILER
#if !defined( HB_NO_PROFILER )
ULONG ulCalls; /* profiler support */
ULONG ulTime; /* profiler support */
ULONG ulRecurse; /* profiler support */
#endif
#endif /* !HB_NO_PROFILER */
} HB_DYNS, * PHB_DYNS, * HB_DYNS_PTR;
/* pCode dynamic function - HRB */
@@ -161,7 +161,7 @@ struct _HB_SYMB;
struct _HB_SYMB * pSymbols;/* module symbol table */
} HB_PCODEFUNC, * PHB_PCODEFUNC;
#else
#else /* !_HB_API_INTERNAL_ */
# undef HB_API_MACROS
# undef HB_STACK_MACROS
@@ -202,7 +202,7 @@ struct _HB_SYMB;
typedef void * PHB_DYNS_PTR;
#endif
#endif
#endif /* !_HB_API_INTERNAL_ */
/* symbol support structure */
typedef struct _HB_SYMB

View File

@@ -158,7 +158,8 @@ BOOL hb_setenv( const char * szName, const char * szValue )
#elif defined( _BSD_SOURCE ) || _POSIX_C_SOURCE >= 200112L || \
_XOPEN_SOURCE >= 600 || defined( __WATCOMC__ ) || defined( __DJGPP__ ) || \
defined( HB_OS_SUNOS ) || defined( HB_OS_BSD ) || defined( HB_OS_DARWIN )
defined( HB_OS_SUNOS ) || defined( HB_OS_BSD ) || defined( HB_OS_DARWIN ) \
defined( HB_OS_BEOS )
if( szValue )
return setenv( szName, szValue, 1 ) == 0;

View File

@@ -160,8 +160,7 @@ optimized.
( defined( __DJGPP__ ) && \
( __DJGPP__ < 2 || ( __DJGPP__ == 2 && __DJGPP_MINOR__ <= 3 ) ) ) || \
( defined( _MSC_VER ) && \
!( defined( __LCC__ ) || defined( __POCC__ ) || defined( __XCC__ ) ) ) || \
( defined( __GNUC__ ) && __GNUC__ < 3 )
!( defined( __LCC__ ) || defined( __POCC__ ) || defined( __XCC__ ) ) )
/* TODO: add other C compilers which does not support [u]intmax_t
* definitions (check C compiler version number).
* If compiler supports stdint.h then it should be added

View File

@@ -120,7 +120,9 @@
/* #define HB_GT_CRS_TTYHACK */
#define MAX_SIGNO 64
#ifndef MAX_SIGNO
# define MAX_SIGNO 64
#endif
#define BASE_INFD 0
#define BASE_OUTFD 1

View File

@@ -113,13 +113,15 @@
#if defined( HB_OS_UNIX ) && ! defined( __CYGWIN__ )
# define HB_HAS_UNIX
# if !defined( __WATCOMC__ ) && !defined( HB_OS_BEOS )
# if !defined( __WATCOMC__ )
# define HB_HAS_INET_ATON
# define HB_HAS_INET_PTON
# define HB_HAS_INET_NTOP
# define HB_HAS_INET6
# define HB_HAS_SOCKADDR_STORAGE
# define HB_HAS_ADDRINFO
# endif
# if !defined( __WATCOMC__ ) && !defined( HB_OS_BEOS )
# define HB_HAS_INET6
# define HB_HAS_INET6_ADDR_CONST
# endif
# if defined( HB_OS_LINUX )
@@ -1044,7 +1046,7 @@ static void hb_socketSetOsError( int err )
uiErr = HB_SOCKET_ERR_PROTOTYPE;
break;
case EOPNOTSUPP:
#if defined( SOCKTNOSUPPORT )
#if defined( ESOCKTNOSUPPORT )
case ESOCKTNOSUPPORT:
#endif
uiErr = HB_SOCKET_ERR_NOSUPPORT;