Changeset 21064 in webkit for trunk/JavaScriptCore/kjs/dtoa.cpp
- Timestamp:
- Apr 24, 2007, 1:44:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/dtoa.cpp
r19136 r21064 281 281 #endif 282 282 283 #ifndef CONST 283 #ifndef CONST_ 284 284 #ifdef KR_headers 285 #define CONST /* blank */286 #else 287 #define CONST const285 #define CONST_ /* blank */ 286 #else 287 #define CONST_ const 288 288 #endif 289 289 #endif … … 628 628 s2b 629 629 #ifdef KR_headers 630 (s, nd0, nd, y9) CONST char *s; int nd0, nd; ULong y9;631 #else 632 (CONST char *s, int nd0, int nd, ULong y9)630 (s, nd0, nd, y9) CONST_ char *s; int nd0, nd; ULong y9; 631 #else 632 (CONST_ char *s, int nd0, int nd, ULong y9) 633 633 #endif 634 634 { … … 1409 1409 } 1410 1410 1411 static CONST double1411 static CONST_ double 1412 1412 tens[] = { 1413 1413 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, … … 1419 1419 }; 1420 1420 1421 static CONST double1421 static CONST_ double 1422 1422 #ifdef IEEE_Arith 1423 1423 bigtens[] = { 1e16, 1e32, 1e64, 1e128, 1e256 }; 1424 static CONST double tinytens[] = { 1e-16, 1e-32, 1e-64, 1e-128,1424 static CONST_ double tinytens[] = { 1e-16, 1e-32, 1e-64, 1e-128, 1425 1425 #ifdef Avoid_Underflow 1426 1426 9007199254740992.*9007199254740992.e-256 … … 1437 1437 #ifdef IBM 1438 1438 bigtens[] = { 1e16, 1e32, 1e64 }; 1439 static CONST double tinytens[] = { 1e-16, 1e-32, 1e-64 };1439 static CONST_ double tinytens[] = { 1e-16, 1e-32, 1e-64 }; 1440 1440 #define n_bigtens 3 1441 1441 #else 1442 1442 bigtens[] = { 1e16, 1e32 }; 1443 static CONST double tinytens[] = { 1e-16, 1e-32 };1443 static CONST_ double tinytens[] = { 1e-16, 1e-32 }; 1444 1444 #define n_bigtens 2 1445 1445 #endif … … 1465 1465 (sp, t) char **sp, *t; 1466 1466 #else 1467 (CONST char **sp, CONSTchar *t)1467 (CONST_ char **sp, CONST_ char *t) 1468 1468 #endif 1469 1469 { 1470 1470 int c, d; 1471 CONST char *s = *sp;1471 CONST_ char *s = *sp; 1472 1472 1473 1473 while((d = *t++)) { … … 1485 1485 hexnan 1486 1486 #ifdef KR_headers 1487 (rvp, sp) double *rvp; CONST char **sp;1488 #else 1489 (double *rvp, CONST char **sp)1487 (rvp, sp) double *rvp; CONST_ char **sp; 1488 #else 1489 (double *rvp, CONST_ char **sp) 1490 1490 #endif 1491 1491 { 1492 1492 ULong c, x[2]; 1493 CONST char *s;1493 CONST_ char *s; 1494 1494 int havedig, udx0, xshift; 1495 1495 … … 1498 1498 udx0 = 1; 1499 1499 s = *sp; 1500 while((c = *(CONST unsigned char*)++s)) {1500 while((c = *(CONST_ unsigned char*)++s)) { 1501 1501 if (c >= '0' && c <= '9') 1502 1502 c -= '0'; … … 1539 1539 strtod 1540 1540 #ifdef KR_headers 1541 (s00, se) CONST char *s00; char **se;1542 #else 1543 (CONST char *s00, char **se)1541 (s00, se) CONST_ char *s00; char **se; 1542 #else 1543 (CONST_ char *s00, char **se) 1544 1544 #endif 1545 1545 { … … 1549 1549 int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, dsign, 1550 1550 e, e1, esign, i, j, k, nd, nd0, nf, nz, nz0, sign; 1551 CONST char *s, *s0, *s1;1551 CONST_ char *s, *s0, *s1; 1552 1552 double aadj, aadj1, adj, rv, rv0; 1553 1553 Long L; … … 1561 1561 #endif 1562 1562 #ifdef USE_LOCALE 1563 CONST char *s2;1563 CONST_ char *s2; 1564 1564 #endif 1565 1565 … … 2575 2575 nrv_alloc(s, rve, n) char *s, **rve; int n; 2576 2576 #else 2577 nrv_alloc(CONST char *s, char **rve, int n)2577 nrv_alloc(CONST_ char *s, char **rve, int n) 2578 2578 #endif 2579 2579 {
Note:
See TracChangeset
for help on using the changeset viewer.