Skip to content
Permalink
Browse files

OCD fixes: Adds a space after /* (glory to regular expressions!)

  • Loading branch information
gabomdq committed Aug 21, 2013
1 parent 695344d commit 1e49b1ed6efaf2099378653369874d1428bddd1a
Showing with 459 additions and 459 deletions.
  1. +1 −1 Xcode-iOS/Demos/src/fireworks.c
  2. +1 −1 Xcode-iOS/Demos/src/keyboard.c
  3. +1 −1 Xcode-iOS/Demos/src/touch.c
  4. +2 −2 include/SDL.h
  5. +2 −2 include/SDL_atomic.h
  6. +22 −22 include/SDL_audio.h
  7. +2 −2 include/SDL_config_psp.h
  8. +4 −4 include/SDL_endian.h
  9. +2 −2 include/SDL_error.h
  10. +4 −4 include/SDL_events.h
  11. +7 −7 include/SDL_haptic.h
  12. +2 −2 include/SDL_joystick.h
  13. +6 −6 include/SDL_mutex.h
  14. +2 −2 include/SDL_pixels.h
  15. +1 −1 include/SDL_platform.h
  16. +8 −8 include/SDL_rwops.h
  17. +6 −6 include/SDL_scancode.h
  18. +4 −4 include/SDL_stdinc.h
  19. +2 −2 include/SDL_surface.h
  20. +14 −14 include/SDL_test_harness.h
  21. +2 −2 include/SDL_video.h
  22. +1 −1 src/audio/SDL_audio.c
  23. +2 −2 src/audio/SDL_wave.c
  24. +1 −1 src/audio/alsa/SDL_alsa_audio.c
  25. +2 −2 src/audio/psp/SDL_pspaudio.c
  26. +8 −8 src/core/android/SDL_android.c
  27. +1 −1 src/core/android/SDL_android.h
  28. +37 −37 src/events/SDL_gesture.c
  29. +1 −1 src/events/SDL_keyboard.c
  30. +1 −1 src/events/SDL_mouse.c
  31. +4 −4 src/haptic/darwin/SDL_syshaptic.c
  32. +3 −3 src/haptic/linux/SDL_syshaptic.c
  33. +3 −3 src/haptic/windows/SDL_syshaptic.c
  34. +2 −2 src/libm/e_atan2.c
  35. +1 −1 src/libm/e_pow.c
  36. +2 −2 src/libm/math_private.h
  37. +3 −3 src/libm/s_scalbn.c
  38. +1 −1 src/main/android/SDL_android_main.c
  39. +4 −4 src/render/SDL_yuv_sw.c
  40. +1 −1 src/render/direct3d/SDL_render_d3d.c
  41. +2 −2 src/render/opengl/SDL_render_gl.c
  42. +1 −1 src/render/opengl/SDL_shaders_gl.c
  43. +16 −16 src/render/software/SDL_rotate.c
  44. +2 −2 src/test/SDL_test_assert.c
  45. +128 −128 src/test/SDL_test_font.c
  46. +2 −2 src/test/SDL_test_fuzzer.c
  47. +1 −1 src/test/SDL_test_harness.c
  48. +1 −1 src/test/SDL_test_log.c
  49. +17 −17 src/video/SDL_bmp.c
  50. +2 −2 src/video/SDL_fillrect.c
  51. +1 −1 src/video/SDL_shape.c
  52. +1 −1 src/video/SDL_stretch.c
  53. +1 −1 src/video/SDL_surface.c
  54. +2 −2 src/video/bwindow/SDL_BWin.h
  55. +5 −5 src/video/bwindow/SDL_bopengl.h
  56. +2 −2 src/video/directfb/SDL_DirectFB_WM.c
  57. +4 −4 src/video/directfb/SDL_DirectFB_events.c
  58. +7 −7 src/video/directfb/SDL_DirectFB_render.c
  59. +1 −1 src/video/directfb/SDL_DirectFB_shape.c
  60. +1 −1 src/video/directfb/SDL_DirectFB_video.c
  61. +1 −1 src/video/directfb/SDL_DirectFB_window.c
  62. +1 −1 src/video/directfb/SDL_DirectFB_window.h
  63. +1 −1 src/video/psp/SDL_pspevents.c
  64. +1 −1 src/video/psp/SDL_pspvideo.h
  65. +1 −1 src/video/windows/SDL_windowsevents.c
  66. +2 −2 src/video/x11/SDL_x11events.c
  67. +2 −2 src/video/x11/SDL_x11modes.c
  68. +2 −2 src/video/x11/SDL_x11sym.h
  69. +2 −2 src/video/x11/SDL_x11window.c
  70. +5 −5 src/video/x11/SDL_x11xinput2.c
  71. +1 −1 src/video/x11/SDL_x11xinput2.h
  72. +1 −1 src/video/x11/imKStoUCS.h
  73. +3 −3 test/testautomation_main.c
  74. +9 −9 test/testautomation_platform.c
  75. +36 −36 test/testautomation_rect.c
  76. +1 −1 test/testautomation_rwops.c
  77. +2 −2 test/testautomation_surface.c
  78. +8 −8 test/testgesture.c
  79. +1 −1 test/testhaptic.c
  80. +1 −1 test/testoverlay2.c
  81. +1 −1 test/testrendercopyex.c
  82. +6 −6 test/testshape.c
  83. +1 −1 test/torturethread.c
@@ -196,7 +196,7 @@ explodeEmitter(struct particle *emitter)
float speed = randomFloat(0.00, powf(0.17, exponent));
speed = powf(speed, 1.0f / exponent);

/*select the particle at the end of our array */
/* select the particle at the end of our array */
struct particle *p = &particles[num_active_particles];

/* set the particles properties */
@@ -80,7 +80,7 @@ fontMapping map[TABLE_SIZE] = {
{SDL_SCANCODE_7, 1, 0, 23}, /* 7 */
{SDL_SCANCODE_8, 1, 0, 24}, /* 8 */
{SDL_SCANCODE_9, 1, 0, 25}, /* 9 */
{SDL_SCANCODE_SPACE, 1, 0, 0}, /*' ' */
{SDL_SCANCODE_SPACE, 1, 0, 0}, /* ' ' */
{SDL_SCANCODE_1, 0, KMOD_SHIFT, 1}, /* ! */
{SDL_SCANCODE_SLASH, 0, KMOD_SHIFT, 31}, /* ? */
{SDL_SCANCODE_SLASH, 1, 0, 15}, /* / */
@@ -92,7 +92,7 @@ main(int argc, char *argv[])
SDL_WINDOW_BORDERLESS);
renderer = SDL_CreateRenderer(window, 0, 0);

/*load brush texture */
/* load brush texture */
initializeTexture(renderer);

/* fill canvass initially with all black */
@@ -106,7 +106,7 @@ extern "C" {
* These are the flags which may be passed to SDL_Init(). You should
* specify the subsystems which you will be using in your application.
*/
/*@{ */
/* @{ */
#define SDL_INIT_TIMER 0x00000001
#define SDL_INIT_AUDIO 0x00000010
#define SDL_INIT_VIDEO 0x00000020 /**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */
@@ -119,7 +119,7 @@ extern "C" {
SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | \
SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER \
)
/*@} */
/* @} */

/**
* This function initializes the subsystems specified by \c flags
@@ -91,7 +91,7 @@ extern "C" {
* The spin lock functions and type are required and can not be
* emulated because they are used in the atomic emulation code.
*/
/*@{ */
/* @{ */

typedef int SDL_SpinLock;

@@ -118,7 +118,7 @@ extern DECLSPEC void SDLCALL SDL_AtomicLock(SDL_SpinLock *lock);
*/
extern DECLSPEC void SDLCALL SDL_AtomicUnlock(SDL_SpinLock *lock);

/*@} *//*SDL AtomicLock */
/* @} *//* SDL AtomicLock */


/**
@@ -66,7 +66,7 @@ typedef Uint16 SDL_AudioFormat;
/**
* \name Audio flags
*/
/*@{ */
/* @{ */

#define SDL_AUDIO_MASK_BITSIZE (0xFF)
#define SDL_AUDIO_MASK_DATATYPE (1<<8)
@@ -85,7 +85,7 @@ typedef Uint16 SDL_AudioFormat;
*
* Defaults to LSB byte order.
*/
/*@{ */
/* @{ */
#define AUDIO_U8 0x0008 /**< Unsigned 8-bit samples */
#define AUDIO_S8 0x8008 /**< Signed 8-bit samples */
#define AUDIO_U16LSB 0x0010 /**< Unsigned 16-bit samples */
@@ -94,30 +94,30 @@ typedef Uint16 SDL_AudioFormat;
#define AUDIO_S16MSB 0x9010 /**< As above, but big-endian byte order */
#define AUDIO_U16 AUDIO_U16LSB
#define AUDIO_S16 AUDIO_S16LSB
/*@} */
/* @} */

/**
* \name int32 support
*/
/*@{ */
/* @{ */
#define AUDIO_S32LSB 0x8020 /**< 32-bit integer samples */
#define AUDIO_S32MSB 0x9020 /**< As above, but big-endian byte order */
#define AUDIO_S32 AUDIO_S32LSB
/*@} */
/* @} */

/**
* \name float32 support
*/
/*@{ */
/* @{ */
#define AUDIO_F32LSB 0x8120 /**< 32-bit floating point samples */
#define AUDIO_F32MSB 0x9120 /**< As above, but big-endian byte order */
#define AUDIO_F32 AUDIO_F32LSB
/*@} */
/* @} */

/**
* \name Native audio byte ordering
*/
/*@{ */
/* @{ */
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
#define AUDIO_U16SYS AUDIO_U16LSB
#define AUDIO_S16SYS AUDIO_S16LSB
@@ -129,21 +129,21 @@ typedef Uint16 SDL_AudioFormat;
#define AUDIO_S32SYS AUDIO_S32MSB
#define AUDIO_F32SYS AUDIO_F32MSB
#endif
/*@} */
/* @} */

/**
* \name Allow change flags
*
* Which audio format changes are allowed when opening a device.
*/
/*@{ */
/* @{ */
#define SDL_AUDIO_ALLOW_FREQUENCY_CHANGE 0x00000001
#define SDL_AUDIO_ALLOW_FORMAT_CHANGE 0x00000002
#define SDL_AUDIO_ALLOW_CHANNELS_CHANGE 0x00000004
#define SDL_AUDIO_ALLOW_ANY_CHANGE (SDL_AUDIO_ALLOW_FREQUENCY_CHANGE|SDL_AUDIO_ALLOW_FORMAT_CHANGE|SDL_AUDIO_ALLOW_CHANNELS_CHANGE)
/*@} */
/* @} */

/*@} *//*Audio flags */
/* @} *//* Audio flags */

/**
* This function is called when the audio device needs more data.
@@ -218,10 +218,10 @@ typedef struct SDL_AudioCVT
* These functions return the list of built in audio drivers, in the
* order that they are normally initialized by default.
*/
/*@{ */
/* @{ */
extern DECLSPEC int SDLCALL SDL_GetNumAudioDrivers(void);
extern DECLSPEC const char *SDLCALL SDL_GetAudioDriver(int index);
/*@} */
/* @} */

/**
* \name Initialization and cleanup
@@ -230,10 +230,10 @@ extern DECLSPEC const char *SDLCALL SDL_GetAudioDriver(int index);
* you have a specific need to specify the audio driver you want to
* use. You should normally use SDL_Init() or SDL_InitSubSystem().
*/
/*@{ */
/* @{ */
extern DECLSPEC int SDLCALL SDL_AudioInit(const char *driver_name);
extern DECLSPEC void SDLCALL SDL_AudioQuit(void);
/*@} */
/* @} */

/**
* This function returns the name of the current audio driver, or NULL
@@ -359,7 +359,7 @@ extern DECLSPEC SDL_AudioDeviceID SDLCALL SDL_OpenAudioDevice(const char
*
* Get the current audio state.
*/
/*@{ */
/* @{ */
typedef enum
{
SDL_AUDIO_STOPPED = 0,
@@ -370,7 +370,7 @@ extern DECLSPEC SDL_AudioStatus SDLCALL SDL_GetAudioStatus(void);

extern DECLSPEC SDL_AudioStatus SDLCALL
SDL_GetAudioDeviceStatus(SDL_AudioDeviceID dev);
/*@} *//*Audio State */
/* @} *//* Audio State */

/**
* \name Pause audio functions
@@ -381,11 +381,11 @@ SDL_GetAudioDeviceStatus(SDL_AudioDeviceID dev);
* data for your callback function after opening the audio device.
* Silence will be written to the audio device during the pause.
*/
/*@{ */
/* @{ */
extern DECLSPEC void SDLCALL SDL_PauseAudio(int pause_on);
extern DECLSPEC void SDLCALL SDL_PauseAudioDevice(SDL_AudioDeviceID dev,
int pause_on);
/*@} *//*Pause audio functions */
/* @} *//* Pause audio functions */

/**
* This function loads a WAVE from the data source, automatically freeing
@@ -482,12 +482,12 @@ extern DECLSPEC void SDLCALL SDL_MixAudioFormat(Uint8 * dst,
* the callback function is not running. Do not call these from the callback
* function or you will cause deadlock.
*/
/*@{ */
/* @{ */
extern DECLSPEC void SDLCALL SDL_LockAudio(void);
extern DECLSPEC void SDLCALL SDL_LockAudioDevice(SDL_AudioDeviceID dev);
extern DECLSPEC void SDLCALL SDL_UnlockAudio(void);
extern DECLSPEC void SDLCALL SDL_UnlockAudioDevice(SDL_AudioDeviceID dev);
/*@} *//*Audio lock functions */
/* @} *//* Audio lock functions */

/**
* This function shuts down audio processing and closes the audio device.
@@ -99,8 +99,8 @@
#define HAVE_SQRT 1
#define HAVE_SETJMP 1
#define HAVE_NANOSLEEP 1
/*#define HAVE_SYSCONF 1 */
/*#define HAVE_SIGACTION 1 */
/* #define HAVE_SYSCONF 1 */
/* #define HAVE_SIGACTION 1 */


/* PSP isn't that sophisticated */
@@ -33,10 +33,10 @@
/**
* \name The two types of endianness
*/
/*@{ */
/* @{ */
#define SDL_LIL_ENDIAN 1234
#define SDL_BIG_ENDIAN 4321
/*@} */
/* @} */

#ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */
#ifdef __linux__
@@ -206,7 +206,7 @@ SDL_SwapFloat(float x)
* \name Swap to native
* Byteswap item from the specified endianness to the native endianness.
*/
/*@{ */
/* @{ */
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
#define SDL_SwapLE16(X) (X)
#define SDL_SwapLE32(X) (X)
@@ -226,7 +226,7 @@ SDL_SwapFloat(float x)
#define SDL_SwapBE64(X) (X)
#define SDL_SwapFloatBE(X) (X)
#endif
/*@} *//*Swap to native */
/* @} *//* Swap to native */

/* Ends C function definitions when using C++ */
#ifdef __cplusplus
@@ -48,7 +48,7 @@ extern DECLSPEC void SDLCALL SDL_ClearError(void);
* \internal
* Private error reporting function - used internally.
*/
/*@{ */
/* @{ */
#define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM)
#define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED)
#define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param))
@@ -63,7 +63,7 @@ typedef enum
} SDL_errorcode;
/* SDL_Error() unconditionally returns -1. */
extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code);
/*@} *//*Internal error functions */
/* @} *//* Internal error functions */

/* Ends C function definitions when using C++ */
#ifdef __cplusplus
@@ -541,7 +541,7 @@ typedef union SDL_Event
*/
extern DECLSPEC void SDLCALL SDL_PumpEvents(void);

/*@{ */
/* @{ */
typedef enum
{
SDL_ADDEVENT,
@@ -570,7 +570,7 @@ typedef enum
extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,
SDL_eventaction action,
Uint32 minType, Uint32 maxType);
/*@} */
/* @} */

/**
* Checks to see if certain event types are in the event queue.
@@ -681,7 +681,7 @@ extern DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter,
extern DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter,
void *userdata);

/*@{ */
/* @{ */
#define SDL_QUERY -1
#define SDL_IGNORE 0
#define SDL_DISABLE 0
@@ -697,7 +697,7 @@ extern DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter,
* current processing state of the specified event.
*/
extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state);
/*@} */
/* @} */
#define SDL_GetEventState(type) SDL_EventState(type, SDL_QUERY)

/**
@@ -140,12 +140,12 @@ typedef struct _SDL_Haptic SDL_Haptic;
*
* Different haptic features a device can have.
*/
/*@{ */
/* @{ */

/**
* \name Haptic effects
*/
/*@{ */
/* @{ */

/**
* \brief Constant effect supported.
@@ -177,7 +177,7 @@ typedef struct _SDL_Haptic SDL_Haptic;
#define SDL_HAPTIC_LEFTRIGHT (1<<2)

/* !!! FIXME: put this back when we have more bits in 2.1 */
/*#define SDL_HAPTIC_SQUARE (1<<2) */
/* #define SDL_HAPTIC_SQUARE (1<<2) */

/**
* \brief Triangle wave effect supported.
@@ -262,7 +262,7 @@ typedef struct _SDL_Haptic SDL_Haptic;
*/
#define SDL_HAPTIC_CUSTOM (1<<11)

/*@} *//*Haptic effects */
/* @} *//* Haptic effects */

/* These last few are features the device has, not effects */

@@ -305,7 +305,7 @@ typedef struct _SDL_Haptic SDL_Haptic;
/**
* \name Direction encodings
*/
/*@{ */
/* @{ */

/**
* \brief Uses polar coordinates for the direction.
@@ -328,9 +328,9 @@ typedef struct _SDL_Haptic SDL_Haptic;
*/
#define SDL_HAPTIC_SPHERICAL 2

/*@} *//*Direction encodings */
/* @} *//* Direction encodings */

/*@} *//*Haptic features */
/* @} *//* Haptic features */

/*
* Misc defines.
@@ -187,7 +187,7 @@ extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick * joystick,
/**
* \name Hat positions
*/
/*@{ */
/* @{ */
#define SDL_HAT_CENTERED 0x00
#define SDL_HAT_UP 0x01
#define SDL_HAT_RIGHT 0x02
@@ -197,7 +197,7 @@ extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick * joystick,
#define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN)
#define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP)
#define SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN)
/*@} */
/* @} */

/**
* Get the current state of a POV hat on a joystick.

0 comments on commit 1e49b1e

Please sign in to comment.