Changeset 28771 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Dec 16, 2007, 9:31:35 AM (17 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/dtoa.cpp
r27947 r28771 151 151 * is not strictly legal and can cause trouble with aggressively 152 152 * optimizing compilers (e.g., gcc 2.95.1 under -O2). 153 * #define USE_LOCALE to use the current locale's decimal_point value.154 153 * #define SET_INEXACT if IEEE arithmetic is being used and extra 155 154 * computation should be done to set the inexact flag when the … … 202 201 #include <stdlib.h> 203 202 #include <string.h> 204 205 #ifdef USE_LOCALE206 #include <locale.h>207 #endif208 203 209 204 #ifdef MALLOC … … 1560 1555 int rounding; 1561 1556 #endif 1562 #ifdef USE_LOCALE1563 CONST_ char *s2;1564 #endif1565 1557 1566 1558 sign = nz0 = nz = 0; … … 1601 1593 z = 10*z + c - '0'; 1602 1594 nd0 = nd; 1603 #ifdef USE_LOCALE1604 s1 = localeconv()->decimal_point;1605 if (c == *s1) {1606 c = '.';1607 if (*++s1) {1608 s2 = s;1609 for(;;) {1610 if (*++s2 != *s1) {1611 c = 0;1612 break;1613 }1614 if (!*++s1) {1615 s = s2;1616 break;1617 }1618 }1619 }1620 }1621 #endif1622 1595 if (c == '.') { 1623 1596 c = *++s; -
trunk/JavaScriptCore/kjs/lexer.cpp
r28577 r28771 25 25 #include "lexer.h" 26 26 27 #include "dtoa.h" 27 28 #include "function.h" 28 29 #include "nodes.h" … … 460 461 double dval = 0; 461 462 if (state == Number) { 462 dval = strtod(m_buffer8.data(), 0L);463 dval = kjs_strtod(m_buffer8.data(), 0L); 463 464 } else if (state == Hex) { // scan hex numbers 464 465 const char* p = m_buffer8.data() + 2;
Note:
See TracChangeset
for help on using the changeset viewer.