From 8cc3783e75e6edfbaa4a5798bfe37dee92324914 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 15 Jul 2023 09:12:17 -0700 Subject: [PATCH] Remove extra spaces in stripped tokens --- src/dynapi/gendynapi.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dynapi/gendynapi.py b/src/dynapi/gendynapi.py index a87b46c19e..591f3d6379 100755 --- a/src/dynapi/gendynapi.py +++ b/src/dynapi/gendynapi.py @@ -141,15 +141,15 @@ def main(): print(" Raw data: " + func); # Replace unusual stuff... - func = func.replace("SDL_PRINTF_VARARG_FUNC(1)", ""); - func = func.replace("SDL_PRINTF_VARARG_FUNC(2)", ""); - func = func.replace("SDL_PRINTF_VARARG_FUNC(3)", ""); - func = func.replace("SDL_WPRINTF_VARARG_FUNC(3)", ""); - func = func.replace("SDL_SCANF_VARARG_FUNC(2)", ""); - func = func.replace("__attribute__((analyzer_noreturn))", ""); - func = func.replace("SDL_MALLOC", ""); - func = func.replace("SDL_ALLOC_SIZE2(1, 2)", ""); - func = func.replace("SDL_ALLOC_SIZE(2)", ""); + func = func.replace(" SDL_PRINTF_VARARG_FUNC(1)", ""); + func = func.replace(" SDL_PRINTF_VARARG_FUNC(2)", ""); + func = func.replace(" SDL_PRINTF_VARARG_FUNC(3)", ""); + func = func.replace(" SDL_WPRINTF_VARARG_FUNC(3)", ""); + func = func.replace(" SDL_SCANF_VARARG_FUNC(2)", ""); + func = func.replace(" __attribute__((analyzer_noreturn))", ""); + func = func.replace(" SDL_MALLOC", ""); + func = func.replace(" SDL_ALLOC_SIZE2(1, 2)", ""); + func = func.replace(" SDL_ALLOC_SIZE(2)", ""); func = re.sub(" SDL_ACQUIRE\(.*\)", "", func); func = re.sub(" SDL_ACQUIRE_SHARED\(.*\)", "", func); func = re.sub(" SDL_TRY_ACQUIRE\(.*\)", "", func);