Changeset 2249 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 4, 2002, 2:07:38 PM (23 years ago)
Author:
darin
Message:
  • kjs/config.h: Define HAVE_FUNC_STRTOLL.
  • kjs/function.cpp: (GlobalFuncImp::call): Change parseInt to use strtoll if available.
Location:
trunk/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r2234 r2249  
     12002-10-04  Darin Adler  <[email protected]>
     2
     3        * kjs/config.h: Define HAVE_FUNC_STRTOLL.
     4        * kjs/function.cpp: (GlobalFuncImp::call):
     5        Change parseInt to use strtoll if available.
     6
    17=== Alexander-26 ===
    28
  • trunk/JavaScriptCore/ChangeLog-2002-12-03

    r2234 r2249  
     12002-10-04  Darin Adler  <[email protected]>
     2
     3        * kjs/config.h: Define HAVE_FUNC_STRTOLL.
     4        * kjs/function.cpp: (GlobalFuncImp::call):
     5        Change parseInt to use strtoll if available.
     6
    17=== Alexander-26 ===
    28
  • trunk/JavaScriptCore/ChangeLog-2003-10-25

    r2234 r2249  
     12002-10-04  Darin Adler  <[email protected]>
     2
     3        * kjs/config.h: Define HAVE_FUNC_STRTOLL.
     4        * kjs/function.cpp: (GlobalFuncImp::call):
     5        Change parseInt to use strtoll if available.
     6
    17=== Alexander-26 ===
    28
  • trunk/JavaScriptCore/kjs/config.h

    r2173 r2249  
    11#define HAVE_FUNC_ISINF 1
    22#define HAVE_FUNC_ISNAN 1
     3#define HAVE_FUNC_STRTOLL 1
    34#define HAVE_STRING_H 1
    45#define HAVE_STRINGS_H 1
  • trunk/JavaScriptCore/kjs/function.cpp

    r1864 r2249  
    411411    char* endptr;
    412412    errno = 0;
    413     long value = strtol(cstr.c_str(), &endptr, radix);
     413#ifdef HAVE_FUNC_STRTOLL
     414    long long llValue = strtoll(cstr.c_str(), &endptr, radix);
     415    double value = llValue;
     416#else
     417    long value = strtoll(cstr.c_str(), &endptr, radix);
     418#endif
    414419    if (errno != 0 || endptr == cstr.c_str())
    415420      res = Number(NaN);
Note: See TracChangeset for help on using the changeset viewer.