Ignore:
Timestamp:
Oct 28, 2007, 7:52:04 PM (18 years ago)
Author:
[email protected]
Message:

2007-10-28 Mark Rowe <[email protected]>

Reviewed by Maciej and Tim.

Replace uses of isNaN and isInf with isnan and isinf, and
remove isNaN and isInf.

  • kjs/config.h: Remove unused HAVE_'s
  • kjs/date_object.cpp: (KJS::DateInstance::getTime): (KJS::DateInstance::getUTCTime): (KJS::DateProtoFunc::callAsFunction): (KJS::DateObjectImp::construct): (KJS::DateObjectFuncImp::callAsFunction):
  • kjs/function.cpp: (KJS::GlobalFuncImp::callAsFunction):
  • kjs/math_object.cpp: (MathFuncImp::callAsFunction):
  • kjs/nodes2string.cpp: (KJS::isParserRoundTripNumber):
  • kjs/number_object.cpp: (NumberProtoFunc::callAsFunction):
  • kjs/operations.cpp:
  • kjs/operations.h:
  • kjs/string_object.cpp: (KJS::StringProtoFunc::callAsFunction):
  • kjs/ustring.cpp: (KJS::UString::from):
  • kjs/value.cpp: (KJS::JSValue::toInteger): (KJS::JSValue::toInt32SlowCase): (KJS::JSValue::toUInt32SlowCase):

2007-10-28 Mark Rowe <[email protected]>

Reviewed by Maciej.

Replace uses of isNaN and isInf with isnan and isinf.

  • bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::setLength):
File:
1 edited

Legend:

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

    r26961 r27201  
    2424#define _KJS_OPERATIONS_H_
    2525
    26 #include <math.h>
    27 
    2826namespace KJS {
    2927
    3028  class ExecState;
    3129  class JSValue;
    32 
    33 #if PLATFORM(DARWIN)
    34   inline bool isNaN(double d) { return isnan(d); }
    35   inline bool isInf(double d) { return isinf(d); }
    36   inline bool isPosInf(double d) { return isinf(d) && d > 0; }
    37   inline bool isNegInf(double d) { return isinf(d) && d < 0; }
    38 #else
    39   bool isNaN(double d);
    40   bool isInf(double d);
    41   bool isPosInf(double d);
    42   bool isNegInf(double d);
    43 #endif
    4430
    4531  bool equal(ExecState *exec, JSValue *v1, JSValue *v2);
Note: See TracChangeset for help on using the changeset viewer.