Changeset 29454 in webkit for trunk/JavaScriptCore/kjs/DateMath.h


Ignore:
Timestamp:
Jan 13, 2008, 11:47:56 AM (17 years ago)
Author:
Darin Adler
Message:

Contributions and review by Adriaan de Groot,
Simon Hausmann, Eric Seidel, and Darin Adler.

  • kjs/DateMath.h: (KJS::GregorianDateTime::GregorianDateTime): Use the WIN_OS code path for SOLARIS too, presumably because Solaris also lacks the tm_gtoff and tm_zone fields. (KJS::GregorianDateTime::operator tm): Ditto.
  • kjs/collector.cpp: (KJS::currentThreadStackBase): Use thr_stksegment on Solaris.
  • wtf/MathExtras.h: (isfinite): Implement for Solaris. (isinf): Ditto. (signbit): Ditto. But this one is wrong, so I added a FIXME.
  • wtf/Platform.h: Define PLATFORM(SOLARIS) when "sun" or "sun" is defined.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/DateMath.h

    r20203 r29454  
    6969
    7070// Intentionally overridding the default tm of the system
    71 // Not all OS' have the same members of their tm's
     71// Tee members of tm differ on various operating systems.
    7272struct GregorianDateTime : Noncopyable {
    7373    GregorianDateTime()
     
    102102        , isDST(inTm.tm_isdst)
    103103    {
    104 #if !PLATFORM(WIN_OS)
     104#if !PLATFORM(WIN_OS) && !PLATFORM(SOLARIS)
    105105        utcOffset = static_cast<int>(inTm.tm_gmtoff);
    106106
     
    129129        ret.tm_isdst =  isDST;
    130130
    131 #if !PLATFORM(WIN_OS)
     131#if !PLATFORM(WIN_OS) && !PLATFORM(SOLARIS)
    132132        ret.tm_gmtoff = static_cast<long>(utcOffset);
    133133        ret.tm_zone = timeZone;
Note: See TracChangeset for help on using the changeset viewer.