From 0770c55e8d286c764300f30aed7064c06ce966f5 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sun, 22 Jan 2023 20:14:35 +0100 Subject: [PATCH] cocci: remove SDL_INIT_NOPARACHUTE --- build-scripts/SDL_migration.cocci | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci index 9f6b54e49..65d4c1e1b 100644 --- a/build-scripts/SDL_migration.cocci +++ b/build-scripts/SDL_migration.cocci @@ -1323,6 +1323,10 @@ typedef SDL_GameControllerButtonBind, SDL_GamepadBinding; @@ - SDL_INIT_GAMECONTROLLER + SDL_INIT_GAMEPAD +@ rule_init_noparachute @ +@@ +- SDL_INIT_NOPARACHUTE ++ 0 @@ @@ - SDL_JOYSTICK_TYPE_GAMECONTROLLER @@ -1996,3 +2000,8 @@ typedef SDL_GameControllerButtonBind, SDL_GamepadBinding; - SDL_GetRectDisplayIndex + SDL_GetDisplayIndexForRect (...) +@ depends on rule_init_noparachute @ +expression e; +@@ +- e | 0 ++ e