Skip to content

Commit

Permalink
More non C89 compliant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Aug 20, 2013
1 parent 63fe3a7 commit 552b04c
Show file tree
Hide file tree
Showing 28 changed files with 252 additions and 248 deletions.
4 changes: 2 additions & 2 deletions include/SDL_config_psp.h
Expand Up @@ -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 */
Expand Down
12 changes: 6 additions & 6 deletions include/SDL_test_harness.h
Expand Up @@ -43,30 +43,30 @@ extern "C" {
#endif


//! Definitions for test case structures
/*! Definitions for test case structures*/
#define TEST_ENABLED 1
#define TEST_DISABLED 0

//! Definition of all the possible test return values of the test case method
/*! Definition of all the possible test return values of the test case method*/
#define TEST_ABORTED -1
#define TEST_STARTED 0
#define TEST_COMPLETED 1
#define TEST_SKIPPED 2

//! Definition of all the possible test results for the harness
/*! Definition of all the possible test results for the harness*/
#define TEST_RESULT_PASSED 0
#define TEST_RESULT_FAILED 1
#define TEST_RESULT_NO_ASSERT 2
#define TEST_RESULT_SKIPPED 3
#define TEST_RESULT_SETUP_FAILURE 4

//!< Function pointer to a test case setup function (run before every test)
/*!< Function pointer to a test case setup function (run before every test)*/
typedef void (*SDLTest_TestCaseSetUpFp)(void *arg);

//!< Function pointer to a test case function
/*!< Function pointer to a test case function*/
typedef int (*SDLTest_TestCaseFp)(void *arg);

//!< Function pointer to a test case teardown function (run after every test)
/*!< Function pointer to a test case teardown function (run after every test)*/
typedef void (*SDLTest_TestCaseTearDownFp)(void *arg);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/audio/directsound/SDL_directsound.c
Expand Up @@ -510,7 +510,7 @@ DSOUND_OpenDevice(_THIS, const char *devname, int iscapture)
if (!valid_format) {
DSOUND_CloseDevice(this);
if (tried_format) {
return -1; // CreateSecondary() should have called SDL_SetError().
return -1; /* CreateSecondary() should have called SDL_SetError(). */
}
return SDL_SetError("DirectSound: Unsupported audio format");
}
Expand Down
8 changes: 4 additions & 4 deletions src/audio/psp/SDL_pspaudio.c
Expand Up @@ -63,7 +63,7 @@ PSPAUD_OpenDevice(_THIS, const char *devname, int iscapture)
this->spec.freq = 44100;

/* Update the fragment size as size in bytes. */
// SDL_CalculateAudioSpec(this->spec); MOD
/* SDL_CalculateAudioSpec(this->spec); MOD*/
switch (this->spec.format) {
case AUDIO_U8:
this->spec.silence = 0x80;
Expand All @@ -76,7 +76,7 @@ PSPAUD_OpenDevice(_THIS, const char *devname, int iscapture)
this->spec.size *= this->spec.channels;
this->spec.size *= this->spec.samples;

//==========================================
/*==========================================*/

/* Allocate the mixing buffer. Its size and starting address must
be a multiple of 64 bytes. Our sample count is already a multiple of
Expand Down Expand Up @@ -162,7 +162,7 @@ static int
PSPAUD_Init(SDL_AudioDriverImpl * impl)
{

// Set the function pointers
/* Set the function pointers*/
impl->OpenDevice = PSPAUD_OpenDevice;
impl->PlayDevice = PSPAUD_PlayDevice;
impl->WaitDevice = PSPAUD_WaitDevice;
Expand All @@ -171,7 +171,7 @@ PSPAUD_Init(SDL_AudioDriverImpl * impl)
impl->CloseDevice = PSPAUD_CloseDevice;
impl->ThreadInit = PSPAUD_ThreadInit;

//PSP audio device
/*PSP audio device*/
impl->OnlyHasDefaultOutputDevice = 1;
/*
impl->HasCaptureSupport = 1;
Expand Down

0 comments on commit 552b04c

Please sign in to comment.