epoc32/include/stdapis/stlport/config/stl_watcom.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/stlport/config/stl_watcom.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/stlport/config/stl_watcom.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,152 @@
     1.4 -stl_watcom.h
     1.5 +// STLport configuration file
     1.6 +// It is internal STLport header - DO NOT include it directly
     1.7 +
     1.8 +# ifndef _STLP_NO_OWN_IOSTREAMS 
     1.9 +#  define _STLP_NO_OWN_IOSTREAMS
    1.10 +# endif
    1.11 +
    1.12 +# define _STLP_NO_RELOPS_NAMESPACE
    1.13 +# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
    1.14 +
    1.15 +#  define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
    1.16 +#  define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
    1.17 +#  define _STLP_USE_OLD_HP_ITERATOR_QUERIES
    1.18 +
    1.19 +// On QNX, headers are supposed to be found in /usr/include,
    1.20 +// so default "../include" should work.
    1.21 +# ifndef __QNX__
    1.22 +#  define _STLP_NATIVE_INCLUDE_PATH ../h
    1.23 +# endif
    1.24 +
    1.25 +// Inline replacements for locking calls under Watcom
    1.26 +// Define _STLP_NO_WATCOM_INLINE_INTERLOCK to keep using
    1.27 +// standard WIN32 calls
    1.28 +// Define _STL_MULTIPROCESSOR to enable lock
    1.29 +#if !defined(_STLP_NO_WATCOM_INLINE_INTERLOCK)
    1.30 +
    1.31 +long    __stl_InterlockedIncrement( long *var );
    1.32 +long    __stl_InterlockedDecrement( long *var );
    1.33 +
    1.34 +#ifdef _STL_MULTIPROCESSOR
    1.35 +// Multiple Processors, add lock prefix
    1.36 +#pragma aux __stl_InterlockedIncrement parm [ ecx ] = \
    1.37 +        ".586"                  \
    1.38 +        "mov eax, 1"            \
    1.39 +        "lock xadd [ecx], eax"       \
    1.40 +        "inc eax"               \
    1.41 +        value [eax];
    1.42 +
    1.43 +        
    1.44 +#pragma aux __stl_InterlockedDecrement parm [ ecx ] = \
    1.45 +        ".586"                  \
    1.46 +        "mov eax, 0FFFFFFFFh"   \
    1.47 +        "lock xadd [ecx], eax"       \
    1.48 +        "dec eax"               \
    1.49 +        value [eax];
    1.50 +#else 
    1.51 +// Single Processor, lock prefix not needed
    1.52 +#pragma aux __stl_InterlockedIncrement parm [ ecx ] = \
    1.53 +        ".586"                  \
    1.54 +        "mov eax, 1"            \
    1.55 +        "xadd [ecx], eax"       \
    1.56 +        "inc eax"               \
    1.57 +        value [eax];
    1.58 +        
    1.59 +#pragma aux __stl_InterlockedDecrement parm [ ecx ] = \
    1.60 +        ".586"                  \
    1.61 +        "mov eax, 0FFFFFFFFh"   \
    1.62 +        "xadd [ecx], eax"       \
    1.63 +        "dec eax"               \
    1.64 +        value [eax];
    1.65 +#endif // _STL_MULTIPROCESSOR
    1.66 +
    1.67 +long    __stl_InterlockedExchange( long *Destination, long Value );
    1.68 +                
    1.69 +// xchg has auto-lock
    1.70 +#pragma aux __stl_InterlockedExchange parm [ecx] [eax] = \
    1.71 +        ".586"                  \
    1.72 +        "xchg eax, [ecx]"       \
    1.73 +        value [eax];
    1.74 +#else
    1.75 +
    1.76 +#define __stl_InterlockedIncrement      InterlockedIncrement
    1.77 +#define __stl_InterlockedDecrement      InterlockedDecrement
    1.78 +#define __stl_InterlockedExchange       InterlockedExchange
    1.79 +#endif /* INLINE INTERLOCK */
    1.80 +
    1.81 +#define _STLP_ATOMIC_INCREMENT(__x) __stl_InterlockedIncrement((long*)__x)
    1.82 +#define _STLP_ATOMIC_DECREMENT(__x) __stl_InterlockedDecrement((long*)__x)
    1.83 +#define _STLP_ATOMIC_EXCHANGE(__x, __y) __stl_InterlockedExchange((long*)__x, (long)__y)
    1.84 +
    1.85 +// boris : is this true or just the header is not in /usr/include ?
    1.86 +# ifdef __QNX__
    1.87 +#  define _STLP_NO_TYPEINFO 1
    1.88 +# endif
    1.89 +
    1.90 +#  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
    1.91 +#  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
    1.92 +#  define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
    1.93 +#  define _STLP_NO_MEMBER_TEMPLATES 1
    1.94 +#  define _STLP_NO_FRIEND_TEMPLATES 1
    1.95 +#  define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
    1.96 +
    1.97 +
    1.98 +#  define _STLP_LIMITED_DEFAULT_TEMPLATES 1
    1.99 +#  define _STLP_HAS_NO_NAMESPACES 1
   1.100 +#  define _STLP_NEED_TYPENAME 1
   1.101 +
   1.102 +#  if __WATCOMC__ < 1100
   1.103 +#  define _STLP_NO_WCHAR_T 1
   1.104 +#  define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
   1.105 +#  endif
   1.106 +
   1.107 +#  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
   1.108 +
   1.109 +#  define _STLP_STATIC_CONST_INIT_BUG 1
   1.110 +// #  define _STLP_THROW_RETURN_BUG 1
   1.111 +#  define _STLP_NO_TEMPLATE_CONVERSIONS 1
   1.112 +
   1.113 +#  define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
   1.114 +
   1.115 +#  define _STLP_HAS_NO_NEW_IOSTREAMS 1
   1.116 +#  define _STLP_HAS_NO_NEW_C_HEADERS 1
   1.117 +#  define _STLP_NO_NEW_NEW_HEADER 1
   1.118 +#  define _STLP_VENDOR_GLOBAL_STD
   1.119 +
   1.120 +#  define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
   1.121 +#  define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
   1.122 +#  define _STLP_NONTEMPL_BASE_MATCH_BUG
   1.123 +#  define _STLP_NO_EXCEPTION_HEADER 1
   1.124 +#  define _STLP_NO_BAD_ALLOC 1
   1.125 +
   1.126 +#  define _STLP_NESTED_TYPE_PARAM_BUG 1
   1.127 +
   1.128 +#  define _STLP_NO_CSTD_FUNCTION_IMPORTS 1
   1.129 +
   1.130 +#  if (__WATCOM_CPLUSPLUS__ < 1100 )
   1.131 +#   define _STLP_NO_BOOL 1
   1.132 +#   define _STLP_NEED_EXPLICIT 1
   1.133 +#   define _STLP_NEED_MUTABLE 1
   1.134 +#   define _STLP_NO_ARROW_OPERATOR 1
   1.135 +#  endif
   1.136 +// This one is present in 11, but apparently has bugs (with auto_ptr).
   1.137 +#   define _STLP_NO_NEW_STYLE_CASTS 1
   1.138 +
   1.139 +// Get rid of Watcom's min and max macros 
   1.140 +#undef min 
   1.141 +#undef max
   1.142 +
   1.143 +// for switches (-xs,  -xss,  -xst)
   1.144 +//
   1.145 +#if !(defined (__SW_XS) || defined (__SW_XSS) || defined(__SW_XST))
   1.146 +#    define _STLP_HAS_NO_EXCEPTIONS 1
   1.147 +# endif
   1.148 +
   1.149 +# if defined ( _MT ) && !defined (_NOTHREADS) && !defined (_REENTRANT)
   1.150 +# define _REENTRANT 1
   1.151 +# endif
   1.152 +
   1.153 +
   1.154 +
   1.155 +
   1.156 +