Changeset 52711 in webkit


Ignore:
Timestamp:
Jan 4, 2010 12:35:23 AM (14 years ago)
Author:
mjs@apple.com
Message:

2010-01-04 Maciej Stachowiak <mjs@apple.com>

Reviewed by Adam Barth.

Clean up COMPILER macros and remove unused ones.
https://bugs.webkit.org/show_bug.cgi?id=33132


Removed values are COMPILER(BORLAND) and COMPILER(CYGWIN) - they were
not used anywhere.

  • wtf/Platform.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r52706 r52711  
     12010-01-04  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Adam Barth.
     4
     5        Clean up COMPILER macros and remove unused ones.
     6        https://bugs.webkit.org/show_bug.cgi?id=33132
     7       
     8        Removed values are COMPILER(BORLAND) and COMPILER(CYGWIN) - they were
     9        not used anywhere.
     10
     11        * wtf/Platform.h:
     12
    1132010-01-03  Maciej Stachowiak  <mjs@apple.com>
    214
  • trunk/JavaScriptCore/wtf/Platform.h

    r52706 r52711  
    2828#define WTF_Platform_h
    2929
    30 /* PLATFORM handles OS, operating environment, graphics API, and
     30/* ==== PLATFORM handles OS, operating environment, graphics API, and
    3131   CPU. This macro will be phased out in favor of platform adaptation
    32    macros, policy decision macros, and top-level port definitions. */
     32   macros, policy decision macros, and top-level port definitions. ==== */
    3333#define PLATFORM(WTF_FEATURE) (defined WTF_PLATFORM_##WTF_FEATURE  && WTF_PLATFORM_##WTF_FEATURE)
    3434
    35 /* == Platform adaptation macros: these describe properties of the target environment. */
     35
     36/* ==== Platform adaptation macros: these describe properties of the target environment. ==== */
    3637
    3738/* COMPILER() - the compiler being used to build the project */
     
    4546#define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE  && WTF_OS_##WTF_FEATURE)
    4647
    47 /* == Policy decision macros: these define policy choices for a particular port. */
     48
     49/* ==== Policy decision macros: these define policy choices for a particular port. ==== */
     50
    4851/* USE() - use a particular third-party library or optional OS service */
    4952#define USE(WTF_FEATURE) (defined WTF_USE_##WTF_FEATURE  && WTF_USE_##WTF_FEATURE)
    5053/* ENABLE() - turn on a specific feature of WebKit */
    5154#define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE  && ENABLE_##WTF_FEATURE)
     55
     56
     57
     58/* ==== COMPILER() - the compiler being used to build the project ==== */
     59
     60/* COMPILER(MSVC) */
     61/* COMPILER(MSVC7) */
     62#if defined(_MSC_VER)
     63#define WTF_COMPILER_MSVC 1
     64#if _MSC_VER < 1400
     65#define WTF_COMPILER_MSVC7 1
     66#endif
     67#endif
     68
     69/* COMPILER(RVCT) */
     70#if defined(__CC_ARM) || defined(__ARMCC__)
     71#define WTF_COMPILER_RVCT 1
     72#endif
     73
     74/* COMPILER(GCC) */
     75/* --gnu option of the RVCT compiler also defines __GNUC__ */
     76#if defined(__GNUC__) && !COMPILER(RVCT)
     77#define WTF_COMPILER_GCC 1
     78#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
     79#endif
     80
     81/* COMPILER(MINGW) */
     82#if defined(MINGW) || defined(__MINGW32__)
     83#define WTF_COMPILER_MINGW 1
     84#endif
     85
     86/* COMPILER(WINSCW) */
     87#if defined(__WINSCW__)
     88#define WTF_COMPILER_WINSCW 1
     89#endif
     90
    5291
    5392/* Operating systems - low-level dependencies */
     
    422461#endif
    423462
    424 /* Compiler */
    425 
    426 /* COMPILER(MSVC) */
    427 #if defined(_MSC_VER)
    428 #define WTF_COMPILER_MSVC 1
    429 #if _MSC_VER < 1400
    430 #define WTF_COMPILER_MSVC7 1
    431 #endif
    432 #endif
    433 
    434 /* COMPILER(RVCT) */
    435 #if defined(__CC_ARM) || defined(__ARMCC__)
    436 #define WTF_COMPILER_RVCT 1
    437 #endif
    438 
    439 /* COMPILER(GCC) */
    440 /* --gnu option of the RVCT compiler also defines __GNUC__ */
    441 #if defined(__GNUC__) && !COMPILER(RVCT)
    442 #define WTF_COMPILER_GCC 1
    443 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
    444 #endif
    445 
    446 /* COMPILER(MINGW) */
    447 #if defined(MINGW) || defined(__MINGW32__)
    448 #define WTF_COMPILER_MINGW 1
    449 #endif
    450 
    451 /* COMPILER(BORLAND) */
    452 /* not really fully supported - is this relevant any more? */
    453 #if defined(__BORLANDC__)
    454 #define WTF_COMPILER_BORLAND 1
    455 #endif
    456 
    457 /* COMPILER(CYGWIN) */
    458 /* not really fully supported - is this relevant any more? */
    459 #if defined(__CYGWIN__)
    460 #define WTF_COMPILER_CYGWIN 1
    461 #endif
    462 
    463 /* COMPILER(WINSCW) */
    464 #if defined(__WINSCW__)
    465 #define WTF_COMPILER_WINSCW 1
    466 #endif
    467 
    468463#if (PLATFORM(IPHONE) || PLATFORM(MAC) || PLATFORM(WIN) || (PLATFORM(QT) && PLATFORM(DARWIN) && !ENABLE(SINGLE_THREADED))) && !defined(ENABLE_JSC_MULTIPLE_THREADS)
    469464#define ENABLE_JSC_MULTIPLE_THREADS 1
Note: See TracChangeset for help on using the changeset viewer.