Removed the vi format comments from the source

Vim users can use the [editorconfig plugin](https://github.com/editorconfig/editorconfig-vim) to automatically set tab spacing for the SDL coding style.

Fixes https://github.com/libsdl-org/SDL/issues/6903
This commit is contained in:
Sam Lantinga
2022-12-26 11:17:23 -08:00
parent 7c67213cef
commit 63724c113b
909 changed files with 1 additions and 1808 deletions

View File

@@ -500,5 +500,3 @@ main(int argc, char *argv[])
SDL_free(soundname);
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -442,9 +442,6 @@ int main(void)
}
printf("};\n\n");
printf("/* vi: set ts=4 sw=4 expandtab: */\n\n");
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -154,10 +154,6 @@ int main(void)
printf("%s%.9ff", ((i % 5) == 4) ? ",\n " : ", ", ResamplerFilterDifference[i+1]);
}
printf("\n};\n\n");
printf("/* vi: set ts=4 sw=4 expandtab: */\n\n");
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -38,6 +38,7 @@ There is no SDLmain library anymore, it's now header-only, see below in the SDL_
begin_code.h and close_code.h in the public headers have been renamed to SDL_begin_code.h and SDL_close_code.h. These aren't meant to be included directly by applications, but if your application did, please update your `#include` lines.
The vi format comments have been removed from source code. Vim users can use the [editorconfig plugin](https://github.com/editorconfig/editorconfig-vim) to automatically set tab spacing for the SDL coding style.
## SDL_cpuinfo.h

View File

@@ -79,5 +79,3 @@
#include <SDL3/SDL_oldnames.h>
#endif /* SDL_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -316,5 +316,3 @@ extern DECLSPEC void SDLCALL SDL_ResetAssertionReport(void);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_assert_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -406,5 +406,3 @@ extern DECLSPEC void* SDLCALL SDL_AtomicGetPtr(void **a);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_atomic_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1496,5 +1496,3 @@ extern DECLSPEC void SDLCALL SDL_CloseAudioDevice(SDL_AudioDeviceID dev);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_audio_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -122,5 +122,3 @@ SDL_HasExactlyOneBitSet32(Uint32 x)
#include <SDL3/SDL_close_code.h>
#endif /* SDL_bits_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -194,5 +194,3 @@ extern DECLSPEC SDL_BlendMode SDLCALL SDL_ComposeCustomBlendMode(SDL_BlendFactor
#include <SDL3/SDL_close_code.h>
#endif /* SDL_blendmode_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -137,5 +137,3 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasPrimarySelectionText(void);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_clipboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -464,5 +464,3 @@ extern DECLSPEC void SDLCALL SDL_SIMDFree(void *ptr);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_cpuinfo_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -344,5 +344,3 @@ SDL_SwapFloat(float x)
#include <SDL3/SDL_close_code.h>
#endif /* SDL_endian_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -159,5 +159,3 @@ extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_error_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1148,5 +1148,3 @@ extern DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_events_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -145,5 +145,3 @@ extern DECLSPEC char *SDLCALL SDL_GetPrefPath(const char *org, const char *app);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_filesystem_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1051,5 +1051,3 @@ extern DECLSPEC const char* SDLCALL SDL_GameControllerGetAppleSFSymbolsNameForAx
#include <SDL3/SDL_close_code.h>
#endif /* SDL_gamecontroller_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -96,5 +96,3 @@ extern DECLSPEC SDL_GUID SDLCALL SDL_GUIDFromString(const char *pchGUID);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_guid_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1337,5 +1337,3 @@ extern DECLSPEC int SDLCALL SDL_HapticRumbleStop(SDL_Haptic * haptic);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_haptic_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -447,5 +447,3 @@ extern DECLSPEC void SDLCALL SDL_hid_ble_scan(SDL_bool active);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_hidapi_h_ */
/* vi: set sts=4 ts=4 sw=4 expandtab: */

View File

@@ -2574,5 +2574,3 @@ extern DECLSPEC void SDLCALL SDL_ClearHints(void);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_hints_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -195,5 +195,3 @@ extern DECLSPEC void SDLCALL SDL_Quit(void);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_init_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1026,5 +1026,3 @@ extern DECLSPEC SDL_JoystickPowerLevel SDLCALL SDL_JoystickCurrentPowerLevel(SDL
#include <SDL3/SDL_close_code.h>
#endif /* SDL_joystick_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -349,5 +349,3 @@ extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenKeyboardShown(SDL_Window *window);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_keyboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -354,5 +354,3 @@ typedef enum
} SDL_Keymod;
#endif /* SDL_keycode_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -111,5 +111,3 @@ extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_loadso_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -99,5 +99,3 @@ extern DECLSPEC SDL_Locale * SDLCALL SDL_GetPreferredLocales(void);
#include <SDL3/SDL_close_code.h>
#endif /* _SDL_locale_h */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -400,5 +400,3 @@ extern DECLSPEC void SDLCALL SDL_LogSetOutputFunction(SDL_LogOutputFunction call
#include <SDL3/SDL_close_code.h>
#endif /* SDL_log_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -305,5 +305,3 @@ extern DECLSPEC void SDLCALL SDL_GDKSuspendComplete(void);
#endif /* SDL_MAIN_HANDLED */
#endif /* SDL_main_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -198,5 +198,3 @@ int main(int argc, char *argv[])
#endif /* SDL_MAIN_HANDLED */
#endif /* SDL_main_windows_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -189,5 +189,3 @@ extern DECLSPEC int SDLCALL SDL_ShowSimpleMessageBox(Uint32 flags, const char *t
#include <SDL3/SDL_close_code.h>
#endif /* SDL_messagebox_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -75,5 +75,3 @@ extern DECLSPEC int SDLCALL SDL_OpenURL(const char *url);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_misc_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -466,5 +466,3 @@ extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_mouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -541,5 +541,3 @@ extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond *cond,
#include <SDL3/SDL_close_code.h>
#endif /* SDL_mutex_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -29,5 +29,3 @@
#define SDL_NAME(X) SDL_##X
#endif /* SDLname_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -110,5 +110,3 @@
#endif /* SDL_ENABLE_OLD_NAMES */
#endif /* SDL_oldnames_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -2121,5 +2121,3 @@ typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLsh
#endif /* !__IOS__ */
#endif /* SDL_opengl_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -617,5 +617,3 @@ extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel,
#include <SDL3/SDL_close_code.h>
#endif /* SDL_pixels_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -238,5 +238,3 @@ extern DECLSPEC const char * SDLCALL SDL_GetPlatform (void);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_platform_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -83,5 +83,3 @@ extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *seconds, int *perce
#include <SDL3/SDL_close_code.h>
#endif /* SDL_power_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -372,5 +372,3 @@ extern DECLSPEC SDL_bool SDLCALL SDL_IntersectFRectAndLine(const SDL_FRect *
#include <SDL3/SDL_close_code.h>
#endif /* SDL_rect_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1932,5 +1932,3 @@ extern DECLSPEC int SDLCALL SDL_RenderSetVSync(SDL_Renderer* renderer, int vsync
#include <SDL3/SDL_close_code.h>
#endif /* SDL_render_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -808,5 +808,3 @@ extern DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_rwops_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -434,5 +434,3 @@ typedef enum
} SDL_Scancode;
#endif /* SDL_scancode_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -301,5 +301,3 @@ extern DECLSPEC void SDLCALL SDL_SensorUpdate(void);
#include <SDL3/SDL_close_code.h>
#endif /* SDL_sensor_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -743,5 +743,3 @@ SDL_FORCE_INLINE int _SDL_size_add_overflow_builtin (size_t a,
#include <SDL3/SDL_close_code.h>
#endif /* SDL_stdinc_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -885,5 +885,3 @@ extern DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionModeForResol
#include <SDL3/SDL_close_code.h>
#endif /* SDL_surface_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -619,5 +619,3 @@ extern DECLSPEC int SDLCALL SDL_GDKGetTaskQueue(XTaskQueueHandle * outTaskQueue)
#include <SDL3/SDL_close_code.h>
#endif /* SDL_system_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -264,5 +264,3 @@ extern DECLSPEC int SDLCALL SDL_GetWindowWMInfo(SDL_Window *window, SDL_SysWMinf
#include <SDL3/SDL_close_code.h>
#endif /* SDL_syswm_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -65,5 +65,3 @@ extern "C" {
#include <SDL3/SDL_close_code.h>
#endif /* SDL_test_h_ */
/* vi: set ts=4 sw=4 expandtab: */

Some files were not shown because too many files have changed in this diff Show More