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:
Sam Lantinga
2024-08-22 10:30:45 -07:00
parent 658fc3db0f
commit 6501e90018
743 changed files with 11882 additions and 11882 deletions

View File

@@ -23,7 +23,7 @@
#ifndef SDL_thread_c_h_
#define SDL_thread_c_h_
/* Need the definitions of SYS_ThreadHandle */
// Need the definitions of SYS_ThreadHandle
#ifdef SDL_THREADS_DISABLED
#include "generic/SDL_systhread_c.h"
#elif defined(SDL_THREAD_PTHREAD)
@@ -56,7 +56,7 @@ typedef enum SDL_ThreadState
SDL_THREAD_STATE_CLEANED,
} SDL_ThreadState;
/* This is the system-independent thread info structure */
// This is the system-independent thread info structure
struct SDL_Thread
{
SDL_ThreadID threadid;
@@ -65,17 +65,17 @@ struct SDL_Thread
SDL_AtomicInt state; /* SDL_THREAD_STATE_* */
SDL_error errbuf;
char *name;
size_t stacksize; /* 0 for default, >0 for user-specified stack size. */
size_t stacksize; // 0 for default, >0 for user-specified stack size.
int(SDLCALL *userfunc)(void *);
void *userdata;
void *data;
SDL_FunctionPointer endfunc; /* only used on some platforms. */
SDL_FunctionPointer endfunc; // only used on some platforms.
};
/* This is the function called to run a thread */
// This is the function called to run a thread
extern void SDL_RunThread(SDL_Thread *thread);
/* This is the system-independent thread local storage structure */
// This is the system-independent thread local storage structure
typedef struct
{
int limit;
@@ -86,7 +86,7 @@ typedef struct
} array[1];
} SDL_TLSData;
/* This is how many TLS entries we allocate at once */
// This is how many TLS entries we allocate at once
#define TLS_ALLOC_CHUNKSIZE 4
extern void SDL_InitTLSData(void);
@@ -101,4 +101,4 @@ extern SDL_TLSData *SDL_Generic_GetTLSData(void);
extern int SDL_Generic_SetTLSData(SDL_TLSData *data);
extern void SDL_Generic_QuitTLSData(void);
#endif /* SDL_thread_c_h_ */
#endif // SDL_thread_c_h_