mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-08 02:46:26 +00:00
Use C++ style comments consistently in SDL source code
Implemented using this script: find . -type f -exec sed -i'' -e 's,/\* *\([^*]*\)\*/ *$,// \1,' -e 's, \+$,,' {} \; git checkout \ core/linux/SDL_evdev_kbd_default_keymap.h \ events/imKStoUCS.* \ hidapi \ joystick/controller_type.c \ joystick/controller_type.h \ joystick/hidapi/steam/controller_constants.h \ joystick/hidapi/steam/controller_structs.h \ joystick/SDL_gamepad_db.h \ libm \ render/*/*Shader*.h \ render/vitagxm/SDL_render_vita_gxm_shaders.h \ render/metal/SDL_shaders_metal_*.h \ stdlib/SDL_malloc.c \ stdlib/SDL_qsort.c \ stdlib/SDL_strtokr.c \ test/ \ video/directx/SDL_d3d12_xbox_cmacros.h \ video/directx/d3d12.h \ video/directx/d3d12sdklayers.h \ video/khronos \ video/x11/edid-parse.c \ video/x11/xsettings-client.* \ video/yuv2rgb sed -i'' -e 's,/\* *\([^*]*\)\*/ *$,// \1,' -e 's, \+$,,' hidapi/SDL_hidapi.c
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
/* This file contains SDL replacements for functions in the C library */
|
||||
// This file contains SDL replacements for functions in the C library
|
||||
|
||||
#if !defined(HAVE_LIBC) && !defined(SDL_STATIC_LIB)
|
||||
|
||||
/* These are some C runtime intrinsics that need to be defined */
|
||||
// These are some C runtime intrinsics that need to be defined
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
@@ -35,7 +35,7 @@ __declspec(selectany) int _fltused = 1;
|
||||
|
||||
#ifdef _M_IX86
|
||||
|
||||
/* Float to long */
|
||||
// Float to long
|
||||
void __declspec(naked) _ftol()
|
||||
{
|
||||
/* *INDENT-OFF* */
|
||||
@@ -95,7 +95,7 @@ void _ftol2()
|
||||
_ftol();
|
||||
}
|
||||
|
||||
/* 64-bit math operators for 32-bit systems */
|
||||
// 64-bit math operators for 32-bit systems
|
||||
void __declspec(naked) _allmul()
|
||||
{
|
||||
/* *INDENT-OFF* */
|
||||
@@ -726,7 +726,7 @@ void __declspec(naked) _alloca_probe_16(void)
|
||||
/* *INDENT-ON* */
|
||||
}
|
||||
|
||||
#endif /* _M_IX86 */
|
||||
#endif // _M_IX86
|
||||
|
||||
#ifdef _M_ARM64
|
||||
|
||||
@@ -736,7 +736,7 @@ void __chkstk() {
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* MSC_VER */
|
||||
#endif // MSC_VER
|
||||
|
||||
#ifdef __ICL
|
||||
/* The classic Intel compiler generates calls to _intel_fast_memcpy
|
||||
@@ -751,4 +751,4 @@ void *_intel_fast_memset(void *dst, int c, size_t len)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !HAVE_LIBC && !SDL_STATIC_LIB */
|
||||
#endif // !HAVE_LIBC && !SDL_STATIC_LIB
|
||||
|
Reference in New Issue
Block a user