Some minor cleanups

This commit is contained in:
Chris Robinson 2011-05-07 04:31:43 -07:00
parent db3cb23c1d
commit a8fdcd30a5
3 changed files with 7 additions and 8 deletions

View File

@ -671,7 +671,7 @@ void al_print(const char *fname, unsigned int line, const char *fmt, ...)
int i; int i;
fn = strrchr(fname, '/'); fn = strrchr(fname, '/');
if(!fn) fn = strrchr(fname, '\\');; if(!fn) fn = strrchr(fname, '\\');
if(!fn) fn = fname; if(!fn) fn = fname;
else fn += 1; else fn += 1;

View File

@ -997,7 +997,7 @@ DECL_TEMPLATE(ALbyte, StereoChans,2, aluF2B)
#undef DECL_TEMPLATE #undef DECL_TEMPLATE
#define DECL_TEMPLATE(T, func) \ #define DECL_TEMPLATE(T) \
static void Write_##T(ALCdevice *device, T *buffer, ALuint SamplesToDo) \ static void Write_##T(ALCdevice *device, T *buffer, ALuint SamplesToDo) \
{ \ { \
switch(device->FmtChans) \ switch(device->FmtChans) \
@ -1023,11 +1023,11 @@ static void Write_##T(ALCdevice *device, T *buffer, ALuint SamplesToDo) \
} \ } \
} }
DECL_TEMPLATE(ALfloat, aluF2F) DECL_TEMPLATE(ALfloat)
DECL_TEMPLATE(ALushort, aluF2US) DECL_TEMPLATE(ALushort)
DECL_TEMPLATE(ALshort, aluF2S) DECL_TEMPLATE(ALshort)
DECL_TEMPLATE(ALubyte, aluF2UB) DECL_TEMPLATE(ALubyte)
DECL_TEMPLATE(ALbyte, aluF2B) DECL_TEMPLATE(ALbyte)
#undef DECL_TEMPLATE #undef DECL_TEMPLATE

View File

@ -244,7 +244,6 @@ static __inline void InitializeCriticalSection(CRITICAL_SECTION *cs)
pthread_mutexattr_destroy(&attrib); pthread_mutexattr_destroy(&attrib);
} }
static __inline void DeleteCriticalSection(CRITICAL_SECTION *cs) static __inline void DeleteCriticalSection(CRITICAL_SECTION *cs)
{ {
int ret; int ret;