Changeset 10456 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Sep 3, 2005, 6:18:13 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r10399 r10456 26 26 #include <math.h> 27 27 #include <assert.h> 28 #ifndef NDEBUG29 #include <strings.h> // for strdup30 #endif31 28 32 29 #include "array_object.h" … … 50 47 #include "string_object.h" 51 48 52 #define I18N_NOOP(s) s 49 #if WIN32 50 #include <float.h> 51 #define copysign(a, b) _copysign(a, b) 52 #endif 53 53 54 54 extern int kjsyyparse(); … … 59 59 60 60 #if !APPLE_CHANGES 61 61 62 62 #ifdef WORDS_BIGENDIAN 63 63 const unsigned char NaN_Bytes[] = { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 }; … … 70 70 const unsigned char Inf_Bytes[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }; 71 71 #endif 72 72 73 73 const double NaN = *(const double*) NaN_Bytes; 74 74 const double Inf = *(const double*) Inf_Bytes; 75 75 76 76 #endif // APPLE_CHANGES 77 78 #if !KJS_MULTIPLE_THREADS 79 80 static inline void initializeInterpreterLock() { } 81 static inline void lockInterpreter() { } 82 static inline void unlockInterpreter() { } 83 84 const int interpreterLockCount = 1; 85 86 #else 77 87 78 88 static pthread_once_t interpreterLockOnce = PTHREAD_ONCE_INIT; … … 104 114 } 105 115 106 116 #endif 107 117 108 118 // ------------------------------ UndefinedImp ---------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.