Skip to content
Permalink
Browse files

More non C89 compliant comments

  • Loading branch information
gabomdq committed Aug 20, 2013
1 parent 63fe3a7 commit 552b04c58aaab3a24013786f1dc3db933d040431
@@ -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 */
@@ -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);

/**
@@ -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");
}
@@ -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;
@@ -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
@@ -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;
@@ -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;

0 comments on commit 552b04c

Please sign in to comment.