* Scripts/do-webcore-rename: Prepare for another round of renaming.
[WebKit-https.git] / WebKitTools / Scripts / do-webcore-rename
index 079c805b7aaf895a110ce58e9889e52980f8bc80..9fbe67e9dc825a0e82a1975fa18207ba7dad669c 100755 (executable)
@@ -43,6 +43,7 @@ my %words;
 # find all files in WebCore we want to process
 
 my @paths;
+find(\&wanted, "JavaScriptCore");
 find(\&wanted, "WebCore");
 
 sub wanted
@@ -66,16 +67,62 @@ sub wanted
 }
 
 my %renames = (
-    "CachedObject" => "CachedResource",
-    "CachedObjectClient" => "CachedResourceClient",
-    "CachedObjectClientWalker" => "CachedResourceClientWalker",
-    "CachedObjectClientWalker_h" => "CachedResourceClientWalker_h",
-    "CachedObject_h" => "CachedResource_h",
-    "LOADER_CACHED_OBJECT_CLIENT_H" => "CachedResourceClient_h",
-    "AccessibilityObjectCache" => "AXObjectCache",
-    "AccessibilityObjectCache_h" => "AXObjectCache_h",
-    "m_accCache" => "m_axObjectCache",
-    "getAccObjectCache" => "axObjectCache",
+    "KHTML_NO_XBL" => "WEBKIT_NO_XBL",
+    "KHTML_XSLT" => "WEBKIT_XSLT",
+    "KURL" => "PlatformURL",
+    "KURLMac" => "PlatformURLMac",
+    "KURL_H_" => "PlatformURL_h",
+    "KXMLCORE_ASSERTIONS_H" => "WTF_Assertions_h",
+    "KXMLCORE_COMPILER_" => "WTF_COMPILER_",
+    "KXMLCORE_COMPILER_BORLAND" => "WTF_COMPILER_BORLAND",
+    "KXMLCORE_COMPILER_CYGWIN" => "WTF_COMPILER_CYGWIN",
+    "KXMLCORE_COMPILER_GCC" => "WTF_COMPILER_GCC",
+    "KXMLCORE_COMPILER_MSVC" => "WTF_COMPILER_MSVC",
+    "KXMLCORE_FAST_MALLOC_H" => "WTF_FastMalloc_h",
+    "KXMLCORE_FAST_MALLOC_INTERNAL_H" => "WTF_FastMallocInternal_h",
+    "KXMLCORE_FORWARD_H" => "WTF_Forward_h",
+    "KXMLCORE_HASH_COUNTED_SET_H" => "WTF_HashCountedSet_h",
+    "KXMLCORE_HASH_FUNCTIONS_H" => "WTF_HashFunctions_h",
+    "KXMLCORE_HASH_MAP_H" => "WTF_HashMap_h",
+    "KXMLCORE_HASH_SET_H" => "WTF_HashSet_h",
+    "KXMLCORE_HASH_TABLE_H" => "WTF_HashTable_h",
+    "KXMLCORE_HASH_TRAITS_H" => "WTF_HashTraits_h",
+    "KXMLCORE_LIST_REF_PTR_H" => "WTF_ListRefPtr_h",
+    "KXMLCORE_NONCOPYABLE" => "WTF_Noncopyable_h",
+    "KXMLCORE_OWN_ARRAY_PTR_H" => "WTF_OwnArrayPtr_h",
+    "KXMLCORE_OWN_PTR_H" => "WTF_OwnPtr_h",
+    "KXMLCORE_PASS_REF_PTR_H" => "WTF_PassRefPtr_h",
+    "KXMLCORE_PLATFORM_" => "WTF_PLATFORM_",
+    "KXMLCORE_PLATFORM_ARM" => "WTF_PLATFORM_ARM",
+    "KXMLCORE_PLATFORM_BIG_ENDIAN" => "WTF_PLATFORM_BIG_ENDIAN",
+    "KXMLCORE_PLATFORM_DARWIN" => "WTF_PLATFORM_DARWIN",
+    "KXMLCORE_PLATFORM_GDK" => "WTF_PLATFORM_GDK",
+    "KXMLCORE_PLATFORM_H" => "WTF_PLATFORM_H",
+    "KXMLCORE_PLATFORM_KDE" => "WTF_PLATFORM_KDE",
+    "KXMLCORE_PLATFORM_MAC" => "WTF_PLATFORM_MAC",
+    "KXMLCORE_PLATFORM_MIDDLE_ENDIAN" => "WTF_PLATFORM_MIDDLE_ENDIAN",
+    "KXMLCORE_PLATFORM_PPC" => "WTF_PLATFORM_PPC",
+    "KXMLCORE_PLATFORM_PPC64" => "WTF_PLATFORM_PPC64",
+    "KXMLCORE_PLATFORM_UNIX" => "WTF_PLATFORM_UNIX",
+    "KXMLCORE_PLATFORM_WIN" => "WTF_PLATFORM_WIN",
+    "KXMLCORE_PLATFORM_WIN_OS" => "WTF_PLATFORM_WIN_OS",
+    "KXMLCORE_PLATFORM_X86" => "WTF_PLATFORM_X86",
+    "KXMLCORE_PLATFORM_X86_64" => "WTF_PLATFORM_X86_64",
+    "KXMLCORE_PRETTY_FUNCTION" => "WTF_PRETTY_FUNCTION",
+    "KXMLCORE_PRIVATE_INLINE" => "WTF_PRIVATE_INLINE",
+    "KXMLCORE_REF_PTR_H" => "WTF_REF_PTR_H",
+    "KXMLCORE_UNUSED_PARAM" => "WTF_UNUSED_PARAM",
+    "KXMLCORE_USE_" => "WTF_USE_",
+    "KXMLCORE_USE_ICU_UNICODE" => "WTF_USE_ICU_UNICODE",
+    "KXMLCORE_USE_MULTIPLE_THREADS" => "WTF_USE_MULTIPLE_THREADS",
+    "KXMLCORE_USE_QT4_UNICODE" => "WTF_USE_QT4_UNICODE",
+    "KXMLCORE_VECTOR_H" => "WTF_Vector_h",
+    "KXMLCORE_VECTOR_TRAITS_H" => "WTF_VectorTraits_h",
+    "KX_FEATURE" => "WTF_FEATURE",
+    "allCachedObjects" => "allCachedResources",
+    "cachedObject" => "cachedResource",
+    "m_docObjects" => "m_resources",
+    "removeCachedObject" => "remove",
 );
 
 # rename files