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

@@ -29,31 +29,31 @@ extern SDL_Mutex *SDL_sensor_lock;
struct SDL_SensorDriver;
/* Useful functions and variables from SDL_sensor.c */
// Useful functions and variables from SDL_sensor.c
/* Initialization and shutdown functions */
// Initialization and shutdown functions
extern int SDL_InitSensors(void);
extern void SDL_QuitSensors(void);
/* Return whether the sensor system is currently initialized */
// Return whether the sensor system is currently initialized
extern SDL_bool SDL_SensorsInitialized(void);
/* Return whether the sensors are currently locked */
// Return whether the sensors are currently locked
extern SDL_bool SDL_SensorsLocked(void);
/* Make sure we currently have the sensors locked */
// Make sure we currently have the sensors locked
extern void SDL_AssertSensorsLocked(void) SDL_ASSERT_CAPABILITY(SDL_sensor_lock);
extern void SDL_LockSensors(void) SDL_ACQUIRE(SDL_sensor_lock);
extern void SDL_UnlockSensors(void) SDL_RELEASE(SDL_sensor_lock);
/* Function to return whether there are any sensors opened by the application */
// Function to return whether there are any sensors opened by the application
extern SDL_bool SDL_SensorsOpened(void);
/* Update an individual sensor, used by gamepad sensor fusion */
// Update an individual sensor, used by gamepad sensor fusion
extern void SDL_UpdateSensor(SDL_Sensor *sensor);
/* Internal event queueing functions */
// Internal event queueing functions
extern int SDL_SendSensorUpdate(Uint64 timestamp, SDL_Sensor *sensor, Uint64 sensor_timestamp, float *data, int num_values);
#endif /* SDL_sensor_c_h_ */
#endif // SDL_sensor_c_h_