Changeset 1371 in webkit for trunk/JavaScriptCore/kjs/ustring.cpp


Ignore:
Timestamp:
Jun 15, 2002, 12:59:07 PM (23 years ago)
Author:
darin
Message:
  • JavaScriptCore.pbproj/project.pbxproj: Removed explicit PFE_FILE_C_DIALECTS now that Project Builder handles this automatically. Removed explicit USE_GCC3 since that's implicit now. Also, since this project is all C++, only use WARNING_CFLAGS with flags that are appropriate for C++; don't bother breaking out C vs. C++.
  • kjs/collector.cpp: Now that the system warning is fixed, use PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER.
  • kjs/internal.cpp: Use PTHREAD_MUTEX_INITIALIZER.
  • kjs/ustring.cpp: Use PTHREAD_ONCE_INIT.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/ustring.cpp

    r1326 r1371  
    127127UString UString::null;
    128128#ifdef APPLE_CHANGES
    129 // FIXME: fix this once static initializers for pthread_once_t
    130 pthread_once_t statBufferKeyOnce = {_PTHREAD_ONCE_SIG_init, {}};
    131 pthread_key_t statBufferKey;
     129static pthread_once_t statBufferKeyOnce = PTHREAD_ONCE_INIT;
     130static pthread_key_t statBufferKey;
    132131#else
    133132static char *statBuffer = 0L;
Note: See TracChangeset for help on using the changeset viewer.