Commit 957d8bf3 authored by Sam Lantinga's avatar Sam Lantinga

stupid indent

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402404
parent 0247379c
...@@ -555,7 +555,7 @@ prepare_audiospec(const SDL_AudioSpec * orig, SDL_AudioSpec * prepared) ...@@ -555,7 +555,7 @@ prepare_audiospec(const SDL_AudioSpec * orig, SDL_AudioSpec * prepared)
switch (orig->channels) { switch (orig->channels) {
case 0:{ case 0:{
const char *env = SDL_getenv("SDL_AUDIO_CHANNELS"); const char *env = SDL_getenv("SDL_AUDIO_CHANNELS");
if ((!env) || ((prepared->channels = (Uint8)SDL_atoi(env)) == 0)) { if ((!env) || ((prepared->channels = (Uint8) SDL_atoi(env)) == 0)) {
prepared->channels = 2; /* a reasonable default */ prepared->channels = 2; /* a reasonable default */
} }
break; break;
......
...@@ -57,7 +57,7 @@ static int (*SDL_NAME(arts_stream_get)) (arts_stream_t s, ...@@ -57,7 +57,7 @@ static int (*SDL_NAME(arts_stream_get)) (arts_stream_t s,
static int (*SDL_NAME(arts_write)) (arts_stream_t s, const void *buffer, static int (*SDL_NAME(arts_write)) (arts_stream_t s, const void *buffer,
int count); int count);
static void (*SDL_NAME(arts_close_stream)) (arts_stream_t s); static void (*SDL_NAME(arts_close_stream)) (arts_stream_t s);
static int (*SDL_NAME(arts_suspended))(void); static int (*SDL_NAME(arts_suspended)) (void);
static const char *(*SDL_NAME(arts_error_text)) (int errorcode); static const char *(*SDL_NAME(arts_error_text)) (int errorcode);
#define SDL_ARTS_SYM(x) { #x, (void **) (char *) &SDL_NAME(x) } #define SDL_ARTS_SYM(x) { #x, (void **) (char *) &SDL_NAME(x) }
...@@ -66,16 +66,19 @@ static struct ...@@ -66,16 +66,19 @@ static struct
const char *name; const char *name;
void **func; void **func;
} arts_functions[] = { } arts_functions[] = {
SDL_ARTS_SYM(arts_init), /* *INDENT-OFF* */
SDL_ARTS_SYM(arts_free), SDL_ARTS_SYM(arts_init),
SDL_ARTS_SYM(arts_play_stream), SDL_ARTS_SYM(arts_free),
SDL_ARTS_SYM(arts_stream_set), SDL_ARTS_SYM(arts_play_stream),
SDL_ARTS_SYM(arts_stream_get), SDL_ARTS_SYM(arts_stream_set),
SDL_ARTS_SYM(arts_write), SDL_ARTS_SYM(arts_stream_get),
SDL_ARTS_SYM(arts_close_stream), SDL_ARTS_SYM(arts_write),
SDL_ARTS_SYM(arts_suspended), SDL_ARTS_SYM(arts_close_stream),
SDL_ARTS_SYM(arts_error_text), SDL_ARTS_SYM(arts_suspended),
SDL_ARTS_SYM(arts_error_text),
/* *INDENT-ON* */
}; };
#undef SDL_ARTS_SYM #undef SDL_ARTS_SYM
static void static void
...@@ -263,7 +266,7 @@ ARTS_OpenDevice(_THIS, const char *devname, int iscapture) ...@@ -263,7 +266,7 @@ ARTS_OpenDevice(_THIS, const char *devname, int iscapture)
return 0; return 0;
} }
if ( ! SDL_NAME(arts_suspended)() ) { if (!SDL_NAME(arts_suspended) ()) {
ARTS_CloseDevice(this); ARTS_CloseDevice(this);
SDL_SetError("ARTS can not open audio device"); SDL_SetError("ARTS can not open audio device");
return 0; return 0;
...@@ -339,7 +342,7 @@ ARTS_Init(SDL_AudioDriverImpl * impl) ...@@ -339,7 +342,7 @@ ARTS_Init(SDL_AudioDriverImpl * impl)
} }
/* Play a stream so aRts doesn't crash */ /* Play a stream so aRts doesn't crash */
if ( SDL_NAME(arts_suspended)() ) { if (SDL_NAME(arts_suspended) ()) {
arts_stream_t stream; arts_stream_t stream;
stream = SDL_NAME(arts_play_stream) (44100, 16, 2, "SDL"); stream = SDL_NAME(arts_play_stream) (44100, 16, 2, "SDL");
SDL_NAME(arts_write) (stream, "", 0); SDL_NAME(arts_write) (stream, "", 0);
......
...@@ -35,12 +35,12 @@ ...@@ -35,12 +35,12 @@
# define MMX_ASMBLIT 1 # define MMX_ASMBLIT 1
# define GCC_ASMBLIT 1 # define GCC_ASMBLIT 1
# elif defined(_MSC_VER) && defined(_M_IX86) # elif defined(_MSC_VER) && defined(_M_IX86)
# if (_MSC_VER <= 1200) # if (_MSC_VER <= 1200)
# include <malloc.h> # include <malloc.h>
# if defined(_mm_free) # if defined(_mm_free)
# define HAVE_MMINTRIN_H 1 # define HAVE_MMINTRIN_H 1
# endif # endif
# else /* Visual Studio > VC6 always has mmintrin.h */ # else /* Visual Studio > VC6 always has mmintrin.h */
# define HAVE_MMINTRIN_H 1 # define HAVE_MMINTRIN_H 1
# endif # endif
# if HAVE_MMINTRIN_H # if HAVE_MMINTRIN_H
......
...@@ -634,7 +634,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) ...@@ -634,7 +634,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
* DefWindowProc to process it. * DefWindowProc to process it.
*/ */
if (xbuttonval > 0) { if (xbuttonval > 0) {
return(TRUE); return (TRUE);
} }
} }
return (0); return (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment