SDL: Renaming SDLK_QUOTEDBL to SDLK_DBLAPOSTROPHE

From 3baec8aab40a7950ebf12d24d43dc5972c287b0c Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Mon, 13 May 2024 21:46:20 +0200
Subject: [PATCH] Renaming SDLK_QUOTEDBL to SDLK_DBLAPOSTROPHE

---
 build-scripts/SDL_migration.cocci | 4 ++++
 docs/README-migration.md          | 1 +
 include/SDL3/SDL_keycode.h        | 2 +-
 include/SDL3/SDL_oldnames.h       | 2 ++
 4 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci
index 1b3fb0c616921..0abd449edd68a 100644
--- a/build-scripts/SDL_migration.cocci
+++ b/build-scripts/SDL_migration.cocci
@@ -3152,3 +3152,7 @@ typedef SDL_Colour, SDL_Color;
 @@
 - SDLK_BACKQUOTE
 + SDLK_GRAVE
+@@
+@@
+- SDLK_QUOTEDBL
++ SDLK_DBLAPOSTROPHE
diff --git a/docs/README-migration.md b/docs/README-migration.md
index 6978263800d1c..e96c7430ec31f 100644
--- a/docs/README-migration.md
+++ b/docs/README-migration.md
@@ -905,6 +905,7 @@ The following symbols have been renamed:
 * KMOD_SHIFT => SDL_KMOD_SHIFT
 * SDLK_BACKQUOTE => SDLK_GRAVE
 * SDLK_QUOTE => SDLK_APOSTROPHE
+* SDLK_QUOTEDBL => SDLK_DBLAPOSTROPHE
 
 ## SDL_loadso.h
 
diff --git a/include/SDL3/SDL_keycode.h b/include/SDL3/SDL_keycode.h
index 36421216ae364..2e10edfc221a9 100644
--- a/include/SDL3/SDL_keycode.h
+++ b/include/SDL3/SDL_keycode.h
@@ -57,7 +57,7 @@ typedef Uint32 SDL_Keycode;
 #define SDLK_TAB    '\t'
 #define SDLK_SPACE  ' '
 #define SDLK_EXCLAIM    '!'
-#define SDLK_QUOTEDBL   '"'
+#define SDLK_DBLAPOSTROPHE   '"'
 #define SDLK_HASH   '#'
 #define SDLK_PERCENT    '%'
 #define SDLK_DOLLAR '$'
diff --git a/include/SDL3/SDL_oldnames.h b/include/SDL3/SDL_oldnames.h
index 4e06737c3e294..f4cdc01ac094b 100644
--- a/include/SDL3/SDL_oldnames.h
+++ b/include/SDL3/SDL_oldnames.h
@@ -358,6 +358,7 @@
 #define KMOD_SHIFT SDL_KMOD_SHIFT
 #define SDLK_BACKQUOTE SDLK_GRAVE
 #define SDLK_QUOTE SDLK_APOSTROPHE
+#define SDLK_QUOTEDBL SDLK_DBLAPOSTROPHE
 
 /* ##SDL_log.h */
 #define SDL_LogGetOutputFunction SDL_GetLogOutputFunction
@@ -866,6 +867,7 @@
 #define KMOD_SHIFT KMOD_SHIFT_renamed_SDL_KMOD_SHIFT
 #define SDLK_BACKQUOTE SDLK_BACKQUOTE_renamed_SDLK_GRAVE
 #define SDLK_QUOTE SDLK_QUOTE_renamed_SDLK_APOSTROPHE
+#define SDLK_QUOTEDBL SDLK_QUOTEDBL_renamed_SDLK_DBLAPOSTROPHE
 
 /* ##SDL_log.h */
 #define SDL_LogGetOutputFunction SDL_LogGetOutputFunction_renamed_SDL_GetLogOutputFunction