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


Ignore:
Timestamp:
Mar 2, 2007, 11:55:21 AM (18 years ago)
Author:
aroben
Message:

Reviewed by Kevin M.

Try to fix the Qt build.

  • kjs/DateMath.cpp: (KJS::msToGregorianDateTime): Removed unnecessary "struct" keyword.
  • kjs/DateMath.h: Moved forward declarations to the top of the file before they are used.
  • kjs/date_object.cpp: (KJS::formatLocaleDate): Changed to take a const GregorianDateTime& since GregorianDateTime is Noncopyable.
File:
1 edited

Legend:

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

    r19943 r19945  
    4848namespace KJS {
    4949
     50struct GregorianDateTime;
     51
     52void msToGregorianDateTime(double, bool outputIsUTC, GregorianDateTime&);
     53double gregorianDateTimeToMS(const GregorianDateTime&, double, bool inputIsUTC);
     54double getUTCOffset();
     55int equivalentYearForDST(int year);
     56
    5057const char * const weekdayName[7] = { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" };
    5158const char * const monthName[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
     
    6269// Intentionally overridding the default tm of the system
    6370// Not all OS' have the same members of their tm's
    64 struct GregorianDateTime : Noncopyable{
     71struct GregorianDateTime : Noncopyable {
    6572    GregorianDateTime()
    6673        : second(0)
     
    142149};
    143150
    144 void msToGregorianDateTime(double, bool outputIsUTC, struct GregorianDateTime&);
    145 double gregorianDateTimeToMS(const GregorianDateTime&, double, bool inputIsUTC);
    146 double getUTCOffset();
    147 int equivalentYearForDST(int year);
    148 
    149151}   //namespace KJS
    150152
Note: See TracChangeset for help on using the changeset viewer.