Changeset 10222 in webkit for trunk/JavaScriptCore/kjs/fast_malloc.cpp
- Timestamp:
- Aug 16, 2005, 6:00:00 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/fast_malloc.cpp
r9009 r10222 225 225 */ 226 226 227 #include "fast_malloc.h" 228 227 229 namespace KJS { 230 231 #ifndef NDEBUG 232 233 // In debugging builds, use the system malloc for its debugging features. 234 235 void *kjs_fast_malloc(size_t n) 236 { 237 return malloc(n); 238 } 239 240 void *kjs_fast_calloc(size_t n_elements, size_t element_size) 241 { 242 return calloc(n_elements, element_size); 243 } 244 245 void kjs_fast_free(void* p) 246 { 247 free(p); 248 } 249 250 void *kjs_fast_realloc(void* p, size_t n) 251 { 252 return realloc(p, n); 253 } 254 255 #else 228 256 229 257 /* … … 5414 5442 #endif /* WIN32 */ 5415 5443 5416 }; /* end of namespace KJS */ 5444 #endif 5445 5446 } /* end of namespace KJS */ 5417 5447 5418 5448 /* ------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.