Ignore:
Timestamp:
Oct 26, 2002, 4:55:44 PM (23 years ago)
Author:
darin
Message:
  • changed to use #if APPLE_CHANGES and #if !APPLE_CHANGES consistently

We no longer do #ifdef APPLE_CHANGES or #ifndef APPLE_CHANGES.

  • kjs/collector.cpp:
  • kjs/collector.h:
  • kjs/grammar.cpp:
  • kjs/internal.cpp:
  • kjs/ustring.h:
File:
1 edited

Legend:

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

    r1863 r2483  
    6969};
    7070
    71 #ifdef APPLE_CHANGES
     71#if APPLE_CHANGES
    7272static pthread_once_t interpreterLockOnce = PTHREAD_ONCE_INIT;
    7373static pthread_mutex_t interpreterLock;
     
    686686  // add this interpreter to the global chain
    687687  // as a root set for garbage collection
    688 #ifdef APPLE_CHANGES
     688#if APPLE_CHANGES
    689689  lockInterpreter();
    690690  m_interpreter = interp;
     
    700700    globalInit();
    701701  }
    702 #ifdef APPLE_CHANGES
     702#if APPLE_CHANGES
    703703  unlockInterpreter();
    704704#endif
    705705
    706 #ifndef APPLE_CHANGES
     706#if !APPLE_CHANGES
    707707  m_interpreter = interp;
    708708#endif
     
    847847  //fprintf(stderr,"InterpreterImp::clear\n");
    848848  // remove from global chain (see init())
    849 #ifdef APPLE_CHANGES
     849#if APPLE_CHANGES
    850850  lockInterpreter();
    851851#endif
     
    859859    globalClear();
    860860  }
    861 #ifdef APPLE_CHANGES
     861#if APPLE_CHANGES
    862862  unlockInterpreter();
    863863#endif
     
    898898Completion InterpreterImp::evaluate(const UString &code, const Value &thisV)
    899899{
    900 #ifdef APPLE_CHANGES
     900#if APPLE_CHANGES
    901901  lockInterpreter();
    902902#endif
    903903  // prevent against infinite recursion
    904904  if (recursion >= 20) {
    905 #ifdef APPLE_CHANGES
     905#if APPLE_CHANGES
    906906    Completion result = Completion(Throw,Error::create(globExec,GeneralError,"Recursion too deep"));
    907907    unlockInterpreter();
     
    922922    bool cont = dbg->sourceParsed(globExec,sid,code,errLine);
    923923    if (!cont)
    924 #ifdef APPLE_CHANGES
     924#if APPLE_CHANGES
    925925      {
    926         pthread_mutex_unlock(&interpreterLock);
     926        unlockInterpreter();
    927927        return Completion(Break);
    928928      }
     
    936936    Object err = Error::create(globExec,SyntaxError,errMsg.ascii(),errLine);
    937937    err.put(globExec,"sid",Number(sid));
    938 #ifdef APPLE_CHANGES
     938#if APPLE_CHANGES
    939939    unlockInterpreter();
    940940#endif
     
    981981  recursion--;
    982982
    983 #ifdef APPLE_CHANGES
    984     unlockInterpreter();
     983#if APPLE_CHANGES
     984  unlockInterpreter();
    985985#endif
    986986  return res;
Note: See TracChangeset for help on using the changeset viewer.