mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	Also rename the internal function symbol when renaming API functions
This commit is contained in:
		| @@ -37,7 +37,10 @@ def main(): | |||||||
|         raise Exception("Couldn't find %s in %s" % (args.oldname, header)) |         raise Exception("Couldn't find %s in %s" % (args.oldname, header)) | ||||||
|  |  | ||||||
|     # Replace the symbol in source code and documentation |     # 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) |     regex = create_regex_from_replacements(replacements) | ||||||
|     for dir in ["src", "test", "include", "docs", "Xcode-iOS/Demos"]: |     for dir in ["src", "test", "include", "docs", "Xcode-iOS/Demos"]: | ||||||
|         replace_symbols_in_path(SDL_ROOT / dir, regex, replacements) |         replace_symbols_in_path(SDL_ROOT / dir, regex, replacements) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sam Lantinga
					Sam Lantinga