Ignore:
Timestamp:
Jan 2, 2009, 12:59:17 PM (16 years ago)
Author:
[email protected]
Message:

Bug 23080: Remove last vestiges of KJS references

<https://bugs.webkit.org/show_bug.cgi?id=23080>

Reviewed by Darin Adler.

Also updated Apple copyright statements.

  • DerivedSources.make: Changed bison "kjsyy" prefix to "jscyy".
  • GNUmakefile.am: Ditto.
  • JavaScriptCore.pri: Ditto. Also changed KJSBISON to JSCBISON and kjsbison to jscbison.
  • JavaScriptCoreSources.bkl: Changed JSCORE_KJS_SOURCES to JSCORE_JSC_SOURCES.
  • jscore.bkl: Ditto.
  • create_hash_table: Updated copyright and removed old comment.
  • parser/Grammar.y: Changed "kjsyy" prefix to "jscyy" prefix.
  • parser/Lexer.cpp: Ditto. Also changed KJS_DEBUG_LEX to JSC_DEBUG_LEX. (jscyylex): (JSC::Lexer::lex):
  • parser/Parser.cpp: Ditto. (JSC::Parser::parse):
  • pcre/dftables: Changed "kjs_pcre_" prefix to "jsc_pcre_".
  • pcre/pcre_compile.cpp: Ditto. (getOthercaseRange): (encodeUTF8): (compileBranch): (calculateCompiledPatternLength):
  • pcre/pcre_exec.cpp: Ditto. (matchRef): (getUTF8CharAndIncrementLength): (match):
  • pcre/pcre_internal.h: Ditto. (toLowerCase): (flipCase): (classBitmapForChar): (charTypeForChar):
  • pcre/pcre_tables.cpp: Ditto.
  • pcre/pcre_ucp_searchfuncs.cpp: Ditto. (jsc_pcre_ucp_othercase):
  • pcre/pcre_xclass.cpp: Ditto. (getUTF8CharAndAdvancePointer): (jsc_pcre_xclass):
  • runtime/Collector.h: Updated header guards using the clean-header-guards script.
  • runtime/CollectorHeapIterator.h: Added missing header guard.
  • runtime/Identifier.h: Updated header guards.
  • runtime/JSFunction.h: Fixed end-of-namespace comment.
  • runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::reset): Renamed "kjsprint" debug function to "jscprint". Changed implementation method from globalFuncKJSPrint() to globalFuncJSCPrint().
  • runtime/JSGlobalObjectFunctions.cpp: (JSC::globalFuncJSCPrint): Renamed from globalFuncKJSPrint().
  • runtime/JSGlobalObjectFunctions.h: Ditto.
  • runtime/JSImmediate.h: Updated header guards.
  • runtime/JSLock.h: Ditto.
  • runtime/JSType.h: Ditto.
  • runtime/JSWrapperObject.h: Ditto.
  • runtime/Lookup.h: Ditto.
  • runtime/Operations.h: Ditto.
  • runtime/Protect.h: Ditto.
  • runtime/RegExp.h: Ditto.
  • runtime/UString.h: Ditto.
  • tests/mozilla/js1_5/Array/regress-157652.js: Changed "KJS" reference in comment to "JSC".
  • wrec/CharacterClassConstructor.cpp: Change "kjs_pcre_" function prefixes to "jsc_pcre_". (JSC::WREC::CharacterClassConstructor::put): (JSC::WREC::CharacterClassConstructor::flush):
  • wtf/unicode/Unicode.h: Change "KJS_" header guard to "WTF_".
  • wtf/unicode/icu/UnicodeIcu.h: Ditto.
  • wtf/unicode/qt4/UnicodeQt4.h: Ditto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_internal.h

    r36612 r39554  
    77                 Originally written by Philip Hazel
    88           Copyright (c) 1997-2006 University of Cambridge
    9     Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved.
     9    Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
    1010
    1111-----------------------------------------------------------------------------
     
    341341 pcre_tables.c module. */
    342342
    343 #define kjs_pcre_utf8_table1_size 6
    344 
    345 extern const int    kjs_pcre_utf8_table1[6];
    346 extern const int    kjs_pcre_utf8_table2[6];
    347 extern const int    kjs_pcre_utf8_table3[6];
    348 extern const unsigned char kjs_pcre_utf8_table4[0x40];
    349 
    350 extern const unsigned char kjs_pcre_default_tables[tables_length];
     343#define jsc_pcre_utf8_table1_size 6
     344
     345extern const int    jsc_pcre_utf8_table1[6];
     346extern const int    jsc_pcre_utf8_table2[6];
     347extern const int    jsc_pcre_utf8_table3[6];
     348extern const unsigned char jsc_pcre_utf8_table4[0x40];
     349
     350extern const unsigned char jsc_pcre_default_tables[tables_length];
    351351
    352352static inline unsigned char toLowerCase(unsigned char c)
    353353{
    354     static const unsigned char* lowerCaseChars = kjs_pcre_default_tables + lcc_offset;
     354    static const unsigned char* lowerCaseChars = jsc_pcre_default_tables + lcc_offset;
    355355    return lowerCaseChars[c];
    356356}
     
    358358static inline unsigned char flipCase(unsigned char c)
    359359{
    360     static const unsigned char* flippedCaseChars = kjs_pcre_default_tables + fcc_offset;
     360    static const unsigned char* flippedCaseChars = jsc_pcre_default_tables + fcc_offset;
    361361    return flippedCaseChars[c];
    362362}
     
    364364static inline unsigned char classBitmapForChar(unsigned char c)
    365365{
    366     static const unsigned char* charClassBitmaps = kjs_pcre_default_tables + cbits_offset;
     366    static const unsigned char* charClassBitmaps = jsc_pcre_default_tables + cbits_offset;
    367367    return charClassBitmaps[c];
    368368}
     
    370370static inline unsigned char charTypeForChar(unsigned char c)
    371371{
    372     const unsigned char* charTypeMap = kjs_pcre_default_tables + ctypes_offset;
     372    const unsigned char* charTypeMap = jsc_pcre_default_tables + ctypes_offset;
    373373    return charTypeMap[c];
    374374}
     
    414414but are not part of the public API and so not exported from the library. */
    415415
    416 extern int kjs_pcre_ucp_othercase(unsigned);
    417 extern bool kjs_pcre_xclass(int, const unsigned char*);
     416extern int jsc_pcre_ucp_othercase(unsigned);
     417extern bool jsc_pcre_xclass(int, const unsigned char*);
    418418
    419419#endif
Note: See TracChangeset for help on using the changeset viewer.