소스 검색

Also rename the internal function symbol when renaming API functions

Sam Lantinga 2 년 전
부모
커밋
d31776b17a
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      build-scripts/rename_api.py

+ 4 - 1
build-scripts/rename_api.py

@@ -37,7 +37,10 @@ def main():
         raise Exception("Couldn't find %s in %s" % (args.oldname, header))
 
     # Replace the symbol in source code and documentation
-    replacements = { args.oldname: args.newname }
+    replacements = {
+        args.oldname: args.newname,
+        args.oldname + "_REAL": args.newname + "_REAL"
+    }
     regex = create_regex_from_replacements(replacements)
     for dir in ["src", "test", "include", "docs", "Xcode-iOS/Demos"]:
         replace_symbols_in_path(SDL_ROOT / dir, regex, replacements)