Also rename the internal function symbol when renaming API functions

This commit is contained in:
Sam Lantinga 2022-12-24 09:00:41 -08:00
parent 12e0e6d130
commit d31776b17a
1 changed files with 4 additions and 1 deletions

View File

@ -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)