Ignore:
Timestamp:
Nov 14, 2008, 9:49:56 AM (17 years ago)
Author:
[email protected]
Message:

2008-11-14 Cameron Zwarich <[email protected]>

Reviewed by Darin Adler.

Bug 22245: Move wtf/dtoa.h into the WTF namespace
<https://bugs.webkit.org/show_bug.cgi?id=22245>

Move wtf/dtoa.h into the WTF namespace from the JSC namespace. This
introduces some ambiguities in name lookups, so I changed all uses of
the functions in wtf/dtoa.h to explicitly state the namespace.

JavaScriptCore:

  • JavaScriptCore.exp:
  • parser/Lexer.cpp: (JSC::Lexer::lex):
  • runtime/InitializeThreading.cpp:
  • runtime/JSGlobalObjectFunctions.cpp: (JSC::parseInt):
  • runtime/NumberPrototype.cpp: (JSC::integerPartNoExp): (JSC::numberProtoFuncToExponential):
  • runtime/UString.cpp: (JSC::concatenate): (JSC::UString::from): (JSC::UString::toDouble):
  • wtf/dtoa.cpp:
  • wtf/dtoa.h:

WebCore:

  • platform/text/String.cpp: (WebCore::charactersToDouble):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/UString.cpp

    r38138 r38390  
    776776    int sign;
    777777
    778     char* result = dtoa(d, 0, &decimalPoint, &sign, NULL);
     778    char* result = WTF::dtoa(d, 0, &decimalPoint, &sign, NULL);
    779779    int length = static_cast<int>(strlen(result));
    780780 
     
    827827    }
    828828   
    829   freedtoa(result);
     829  WTF::freedtoa(result);
    830830
    831831  return concatenate(rep, buf);
     
    924924    int sign;
    925925
    926     char* result = dtoa(d, 0, &decimalPoint, &sign, NULL);
     926    char* result = WTF::dtoa(d, 0, &decimalPoint, &sign, NULL);
    927927    int length = static_cast<int>(strlen(result));
    928928 
     
    975975    }
    976976   
    977   freedtoa(result);
     977  WTF::freedtoa(result);
    978978
    979979  return UString(buf);
     
    12821282        // regular number ?
    12831283        char* end;
    1284         d = strtod(c, &end);
     1284        d = WTF::strtod(c, &end);
    12851285        if ((d != 0.0 || end != c) && d != Inf && d != -Inf) {
    12861286            c = end;
Note: See TracChangeset for help on using the changeset viewer.