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/nodes2string.cpp

    r27193 r27201  
    2323#include "nodes.h"
    2424
    25 #include "operations.h" // isNaN, isInf
     25#include <wtf/MathExtras.h>
    2626#include <wtf/StringExtras.h>
    2727#include <wtf/unicode/Unicode.h>
     
    140140{
    141141    double number = string.toDouble(false, false);
    142     if (isNaN(number) || isInf(number))
     142    if (isnan(number) || isinf(number))
    143143        return false;
    144144    return string == UString::from(number);
Note: See TracChangeset for help on using the changeset viewer.