Changeset 58307 in webkit


Ignore:
Timestamp:
Apr 27, 2010 6:56:19 AM (14 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

Rename COMPILER(MSVC7) to COMPILER(MSVC7_OR_LOWER)

Reviewed by Simon Hausmann.

  • config.h:

(JSC::Structure::transitionTableAdd):

  • wtf/Assertions.h:
  • wtf/Atomics.h:
  • wtf/CurrentTime.h:

(WTF::getLocalTime):

  • wtf/Platform.h:
  • wtf/StaticConstructors.h:
  • wtf/StringExtras.h:
  • wtf/Vector.h:

(WTF::::append):

Location:
trunk/JavaScriptCore
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r58306 r58307  
     12010-04-27  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Rename COMPILER(MSVC7) to COMPILER(MSVC7_OR_LOWER)
     6
     7        * config.h:
     8        (JSC::Structure::transitionTableAdd):
     9        * wtf/Assertions.h:
     10        * wtf/Atomics.h:
     11        * wtf/CurrentTime.h:
     12        (WTF::getLocalTime):
     13        * wtf/Platform.h:
     14        * wtf/StaticConstructors.h:
     15        * wtf/StringExtras.h:
     16        * wtf/Vector.h:
     17        (WTF::::append):
     18
    1192010-04-15  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
    220
  • trunk/JavaScriptCore/config.h

    r57904 r58307  
    4545#define min min
    4646
    47 #if !COMPILER(MSVC7) && !OS(WINCE)
     47#if !COMPILER(MSVC7_OR_LOWER) && !OS(WINCE)
    4848// We need to define this before the first #include of stdlib.h or it won't contain rand_s.
    4949#ifndef _CRT_RAND_S
  • trunk/JavaScriptCore/wtf/Assertions.h

    r57016 r58307  
    6363#endif
    6464
    65 #if COMPILER(MSVC7) || COMPILER(WINSCW)
     65#if COMPILER(MSVC7_OR_LOWER) || COMPILER(WINSCW)
    6666#define HAVE_VARIADIC_MACRO 0
    6767#else
     
    225225/* ASSERT_WITH_MESSAGE */
    226226
    227 #if COMPILER(MSVC7)
     227#if COMPILER(MSVC7_OR_LOWER)
    228228#define ASSERT_WITH_MESSAGE(assertion) ((void)0)
    229229#elif COMPILER(WINSCW)
     
    265265/* FATAL */
    266266
    267 #if COMPILER(MSVC7)
     267#if COMPILER(MSVC7_OR_LOWER)
    268268#define FATAL() ((void)0)
    269269#elif COMPILER(WINSCW)
     
    280280/* LOG_ERROR */
    281281
    282 #if COMPILER(MSVC7)
     282#if COMPILER(MSVC7_OR_LOWER)
    283283#define LOG_ERROR() ((void)0)
    284284#elif COMPILER(WINSCW)
     
    292292/* LOG */
    293293
    294 #if COMPILER(MSVC7)
     294#if COMPILER(MSVC7_OR_LOWER)
    295295#define LOG() ((void)0)
    296296#elif COMPILER(WINSCW)
     
    306306/* LOG_VERBOSE */
    307307
    308 #if COMPILER(MSVC7)
     308#if COMPILER(MSVC7_OR_LOWER)
    309309#define LOG_VERBOSE(channel) ((void)0)
    310310#elif COMPILER(WINSCW)
  • trunk/JavaScriptCore/wtf/Atomics.h

    r58206 r58307  
    8181#define WTF_USE_LOCKFREE_THREADSAFESHARED 1
    8282
    83 #if COMPILER(MINGW) || COMPILER(MSVC7) || OS(WINCE)
     83#if COMPILER(MINGW) || COMPILER(MSVC7_OR_LOWER) || OS(WINCE)
    8484inline int atomicIncrement(int* addend) { return InterlockedIncrement(reinterpret_cast<long*>(addend)); }
    8585inline int atomicDecrement(int* addend) { return InterlockedDecrement(reinterpret_cast<long*>(addend)); }
  • trunk/JavaScriptCore/wtf/CurrentTime.h

    r54244 r58307  
    5050    inline void getLocalTime(const time_t* localTime, struct tm* localTM)
    5151    {
    52     #if COMPILER(MSVC7) || COMPILER(MINGW) || OS(WINCE)
     52    #if COMPILER(MSVC7_OR_LOWER) || COMPILER(MINGW) || OS(WINCE)
    5353        *localTM = *localtime(localTime);
    5454    #elif COMPILER(MSVC)
  • trunk/JavaScriptCore/wtf/Platform.h

    r57804 r58307  
    5959
    6060/* COMPILER(MSVC) Microsoft Visual C++ */
    61 /* COMPILER(MSVC7) Microsoft Visual C++ v7 or lower*/
     61/* COMPILER(MSVC7_OR_LOWER) Microsoft Visual C++ 2003 or lower*/
    6262#if defined(_MSC_VER)
    6363#define WTF_COMPILER_MSVC 1
    6464#if _MSC_VER < 1400
    65 #define WTF_COMPILER_MSVC7 1
     65#define WTF_COMPILER_MSVC7_OR_LOWER 1
    6666#endif
    6767#endif
  • trunk/JavaScriptCore/wtf/StaticConstructors.h

    r57904 r58307  
    5252#ifndef SKIP_STATIC_CONSTRUCTORS_ON_GCC
    5353    // Define an global in the normal way.
    54 #if COMPILER(MSVC7)
     54#if COMPILER(MSVC7_OR_LOWER)
    5555#define DEFINE_GLOBAL(type, name) \
    5656    const type name;
     
    6666// Define an correctly-sized array of pointers to avoid static initialization.
    6767// Use an array of pointers instead of an array of char in case there is some alignment issue.
    68 #if COMPILER(MSVC7)
     68#if COMPILER(MSVC7_OR_LOWER)
    6969#define DEFINE_GLOBAL(type, name) \
    7070    void * name[(sizeof(type) + sizeof(void *) - 1) / sizeof(void *)];
  • trunk/JavaScriptCore/wtf/StringExtras.h

    r52791 r58307  
    4747}
    4848
    49 #if COMPILER(MSVC7) || OS(WINCE)
     49#if COMPILER(MSVC7_OR_LOWER) || OS(WINCE)
    5050
    5151inline int vsnprintf(char* buffer, size_t count, const char* format, va_list args)
  • trunk/JavaScriptCore/wtf/Vector.h

    r55093 r58307  
    940940        }
    941941           
    942 #if COMPILER(MSVC7)
     942#if COMPILER(MSVC7_OR_LOWER)
    943943        // FIXME: MSVC7 generates compilation errors when trying to assign
    944944        // a pointer to a Vector of its base class (i.e. can't downcast). So far
Note: See TracChangeset for help on using the changeset viewer.