Changeset 52706 in webkit


Ignore:
Timestamp:
Jan 3, 2010 11:40:03 PM (14 years ago)
Author:
mjs@apple.com
Message:

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

Reviewed by Eric Seidel.

Update wtf/Platform.h to document the new system for porting macros.
https://bugs.webkit.org/show_bug.cgi?id=33130

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

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r52637 r52706  
     12010-01-03  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Update wtf/Platform.h to document the new system for porting macros.
     6        https://bugs.webkit.org/show_bug.cgi?id=33130
     7
     8        * wtf/Platform.h:
     9
    1102009-12-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    211
  • trunk/JavaScriptCore/wtf/Platform.h

    r52637 r52706  
    2828#define WTF_Platform_h
    2929
    30 /* PLATFORM handles OS, operating environment, graphics API, and CPU */
     30/* PLATFORM handles OS, operating environment, graphics API, and
     31   CPU. This macro will be phased out in favor of platform adaptation
     32   macros, policy decision macros, and top-level port definitions. */
    3133#define PLATFORM(WTF_FEATURE) (defined WTF_PLATFORM_##WTF_FEATURE  && WTF_PLATFORM_##WTF_FEATURE)
     34
     35/* == Platform adaptation macros: these describe properties of the target environment. */
     36
     37/* COMPILER() - the compiler being used to build the project */
    3238#define COMPILER(WTF_FEATURE) (defined WTF_COMPILER_##WTF_FEATURE  && WTF_COMPILER_##WTF_FEATURE)
     39/* CPU() - the target CPU architecture */
     40#define CPU(WTF_FEATURE) (defined WTF_CPU_##WTF_FEATURE  && WTF_CPU_##WTF_FEATURE)
     41/* HAVE() - specific system features (headers, functions or similar) that are present or not */
    3342#define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE  && HAVE_##WTF_FEATURE)
     43/* OS() - underlying operating system; only to be used for mandated low-level services like
     44   virtual memory, not to choose a GUI toolkit */
     45#define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE  && WTF_OS_##WTF_FEATURE)
     46
     47/* == Policy decision macros: these define policy choices for a particular port. */
     48/* USE() - use a particular third-party library or optional OS service */
    3449#define USE(WTF_FEATURE) (defined WTF_USE_##WTF_FEATURE  && WTF_USE_##WTF_FEATURE)
     50/* ENABLE() - turn on a specific feature of WebKit */
    3551#define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE  && ENABLE_##WTF_FEATURE)
    3652
Note: See TracChangeset for help on using the changeset viewer.