Changeset 17127 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
Oct 18, 2006, 7:42:55 PM (19 years ago)
Author:
mjs
Message:

JavaScriptCore:

Reviewed by Geoff.


  • remove vestiges of KXMLCore name (former name of WTF).
  • wtf/Assertions.h:
  • wtf/FastMalloc.h: (operator new): (operator delete): (operator new[]): (operator delete[]):
  • wtf/FastMallocInternal.h:
  • wtf/Forward.h:
  • wtf/GetPtr.h:
  • wtf/HashCountedSet.h:
  • wtf/HashFunctions.h:
  • wtf/HashMap.h:
  • wtf/HashSet.h:
  • wtf/HashTable.h:
  • wtf/HashTraits.h:
  • wtf/ListRefPtr.h:
  • wtf/MathExtras.h:
  • wtf/Noncopyable.h:
  • wtf/OwnArrayPtr.h:
  • wtf/OwnPtr.h:
  • wtf/PassRefPtr.h:
  • wtf/Platform.h:
  • wtf/RefPtr.h:
  • wtf/StringExtras.h: (snprintf):
  • wtf/UnusedParam.h:
  • wtf/Vector.h:
  • wtf/VectorTraits.h:

WebCore:

Reviewed by Geoff.

  • remove vestiges of KXMLCore name (former name of WTF).
  • config.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Platform.h

    r17055 r17127  
    2525 */
    2626
    27 #ifndef KXMLCORE_PLATFORM_H
    28 #define KXMLCORE_PLATFORM_H
     27#ifndef WTF_Platform_h
     28#define WTF_Platform_h
    2929
    3030/* PLATFORM handles OS, operating environment, graphics API, and CPU */
    31 #define PLATFORM(KX_FEATURE) (defined( KXMLCORE_PLATFORM_##KX_FEATURE ) && KXMLCORE_PLATFORM_##KX_FEATURE)
    32 #define COMPILER(KX_FEATURE) (defined( KXMLCORE_COMPILER_##KX_FEATURE ) && KXMLCORE_COMPILER_##KX_FEATURE)
    33 #define HAVE(KX_FEATURE) (defined( HAVE_##KX_FEATURE ) && HAVE_##KX_FEATURE)
    34 #define USE(KX_FEATURE) (defined( KXMLCORE_USE_##KX_FEATURE ) && KXMLCORE_USE_##KX_FEATURE)
     31#define PLATFORM(WTF_FEATURE) (defined( WTF_PLATFORM_##WTF_FEATURE ) && WTF_PLATFORM_##WTF_FEATURE)
     32#define COMPILER(WTF_FEATURE) (defined( WTF_COMPILER_##WTF_FEATURE ) && WTF_COMPILER_##WTF_FEATURE)
     33#define HAVE(WTF_FEATURE) (defined( HAVE_##WTF_FEATURE ) && HAVE_##WTF_FEATURE)
     34#define USE(WTF_FEATURE) (defined( WTF_USE_##WTF_FEATURE ) && WTF_USE_##WTF_FEATURE)
    3535
    3636/* Operating systems - low-level dependencies */
     
    4040/* be used regardless of operating environment */
    4141#ifdef __APPLE__
    42 #define KXMLCORE_PLATFORM_DARWIN 1
     42#define WTF_PLATFORM_DARWIN 1
    4343#endif
    4444
     
    4747/* regardless of operating environment */
    4848#if defined(WIN32) || defined(_WIN32)
    49 #define KXMLCORE_PLATFORM_WIN_OS 1
     49#define WTF_PLATFORM_WIN_OS 1
    5050#endif
    5151
     
    6060   || defined (__NetBSD__) \
    6161   || defined(_AIX)
    62 #define KXMLCORE_PLATFORM_UNIX 1
     62#define WTF_PLATFORM_UNIX 1
    6363#endif
    6464
     
    6969/* PLATFORM(WIN) */
    7070#if defined(BUILDING_QT__)
    71 #define KXMLCORE_PLATFORM_QT 1
     71#define WTF_PLATFORM_QT 1
    7272
    7373/* PLATFORM(KDE) */
    7474#if defined(BUILDING_KDE__)
    75 #define KXMLCORE_PLATFORM_KDE 1
     75#define WTF_PLATFORM_KDE 1
    7676#endif
    7777
    7878#elif PLATFORM(DARWIN)
    79 #define KXMLCORE_PLATFORM_MAC 1
     79#define WTF_PLATFORM_MAC 1
    8080#elif PLATFORM(WIN_OS)
    81 #define KXMLCORE_PLATFORM_WIN 1
     81#define WTF_PLATFORM_WIN 1
    8282#endif
    8383#if defined(BUILDING_GDK__)
    84 #define KXMLCORE_PLATFORM_GDK 1
     84#define WTF_PLATFORM_GDK 1
    8585#endif
    8686
     
    9090/* PLATFORM(CAIRO) */
    9191#if PLATFORM(MAC)
    92 #define KXMLCORE_PLATFORM_CG 1
     92#define WTF_PLATFORM_CG 1
    9393#elif !PLATFORM(QT)
    94 #define KXMLCORE_PLATFORM_CAIRO 1
     94#define WTF_PLATFORM_CAIRO 1
    9595#endif
    9696
     
    105105   || defined(_M_PPC)      \
    106106   || defined(__PPC)
    107 #define KXMLCORE_PLATFORM_PPC 1
    108 #define KXMLCORE_PLATFORM_BIG_ENDIAN 1
     107#define WTF_PLATFORM_PPC 1
     108#define WTF_PLATFORM_BIG_ENDIAN 1
    109109#endif
    110110
     
    112112#if   defined(__ppc64__) \
    113113   || defined(__PPC64__)
    114 #define KXMLCORE_PLATFORM_PPC64 1
    115 #define KXMLCORE_PLATFORM_BIG_ENDIAN 1
     114#define WTF_PLATFORM_PPC64 1
     115#define WTF_PLATFORM_BIG_ENDIAN 1
    116116#endif
    117117
    118118#if defined(arm)
    119 #define KXMLCORE_PLATFORM_ARM 1
    120 #define KXMLCORE_PLATFORM_MIDDLE_ENDIAN 1
     119#define WTF_PLATFORM_ARM 1
     120#define WTF_PLATFORM_MIDDLE_ENDIAN 1
    121121#endif
    122122
     
    127127   || defined(_X86_)    \
    128128   || defined(__THW_INTEL)
    129 #define KXMLCORE_PLATFORM_X86 1
     129#define WTF_PLATFORM_X86 1
    130130#endif
    131131
     
    133133#if   defined(__x86_64__) \
    134134   || defined(__ia64__)
    135 #define KXMLCORE_PLATFORM_X86_64 1
     135#define WTF_PLATFORM_X86_64 1
    136136#endif
    137137
     
    140140/* COMPILER(MSVC) */
    141141#if defined(_MSC_VER)
    142 #define KXMLCORE_COMPILER_MSVC 1
     142#define WTF_COMPILER_MSVC 1
    143143#endif
    144144
    145145/* COMPILER(GCC) */
    146146#if defined(__GNUC__)
    147 #define KXMLCORE_COMPILER_GCC 1
     147#define WTF_COMPILER_GCC 1
    148148#endif
    149149
     
    151151/* not really fully supported - is this relevant any more? */
    152152#if defined(__BORLANDC__)
    153 #define KXMLCORE_COMPILER_BORLAND 1
     153#define WTF_COMPILER_BORLAND 1
    154154#endif
    155155
     
    157157/* not really fully supported - is this relevant any more? */
    158158#if defined(__CYGWIN__)
    159 #define KXMLCORE_COMPILER_CYGWIN 1
     159#define WTF_COMPILER_CYGWIN 1
    160160#endif
    161161
    162162/* multiple threads only supported on Mac for now */
    163163#if PLATFORM(MAC)
    164 #define KXMLCORE_USE_MULTIPLE_THREADS 1
     164#define WTF_USE_MULTIPLE_THREADS 1
    165165#endif
    166166
     
    168168#if PLATFORM(KDE)
    169169/* FIXME: Not using Qt4 unicode for now! */
    170 #define KXMLCORE_USE_ICU_UNICODE 1
     170#define WTF_USE_ICU_UNICODE 1
    171171#else
    172 #define KXMLCORE_USE_ICU_UNICODE 1
     172#define WTF_USE_ICU_UNICODE 1
    173173#endif
    174174
    175175#if PLATFORM(MAC)
    176 #define KXMLCORE_PLATFORM_CF 1
     176#define WTF_PLATFORM_CF 1
    177177#endif
    178178
    179179#if PLATFORM(WIN)
    180 #define KXMLCORE_USE_WININET 1
     180#define WTF_USE_WININET 1
    181181#endif
    182182
    183183#if PLATFORM(GDK)
    184 #define KXMLCORE_USE_CURL 1
     184#define WTF_USE_CURL 1
    185185#endif
    186186
    187 #endif /* KXMLCORE_PLATFORM_H */
     187#endif /* WTF_Platform_h */
Note: See TracChangeset for help on using the changeset viewer.