Patch by Stefan Huehner: "code cleanup: void 4"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@706 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
fc4ce66939
commit
b9087ef4ca
|
@ -54,7 +54,7 @@ void resSetLoadCallback(RESLOAD_CALLBACK funcToCall)
|
|||
}
|
||||
|
||||
/* do the callback for the resload display function */
|
||||
void resDoResLoadCallback()
|
||||
void resDoResLoadCallback(void)
|
||||
{
|
||||
if(resLoadCallback)
|
||||
{
|
||||
|
|
|
@ -141,7 +141,7 @@ extern SDWORD pieStateCount;
|
|||
* Global ProtoTypes
|
||||
*/
|
||||
/***************************************************************************/
|
||||
extern void pie_SetDefaultStates();//Sets all states
|
||||
extern void pie_SetDefaultStates(void);//Sets all states
|
||||
extern void pie_SetDepthBufferStatus(DEPTH_MODE depthMode);
|
||||
extern WZ_DEPRECATED void pie_SetGammaValue(float val);
|
||||
//renderer capability
|
||||
|
|
|
@ -152,7 +152,7 @@ void pie_BeginLighting(float x, float y, float z) {
|
|||
shadows = TRUE;
|
||||
}
|
||||
|
||||
void pie_EndLighting() {
|
||||
void pie_EndLighting(void) {
|
||||
shadows = FALSE;
|
||||
lighting = FALSE;
|
||||
}
|
||||
|
@ -824,7 +824,7 @@ void pie_DrawRemainingTransShapes() {
|
|||
nb_tshapes = 0;
|
||||
}
|
||||
|
||||
void pie_RemainingPasses() {
|
||||
void pie_RemainingPasses(void) {
|
||||
pie_DrawShadows();
|
||||
pie_DrawRemainingTransShapes();
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ int32 _iVPRIM_DIVTABLE[DIVIDE_TABLE_SIZE];
|
|||
* Local ProtoTypes
|
||||
*/
|
||||
/***************************************************************************/
|
||||
extern void screenDoDumpToDiskIfRequired();
|
||||
extern void screenDoDumpToDiskIfRequired(void);
|
||||
|
||||
/***************************************************************************/
|
||||
/*
|
||||
|
|
|
@ -515,7 +515,7 @@ METHODDEF(void) term_destination(j_compress_ptr cinfo) {
|
|||
free(dm->buffer);
|
||||
}
|
||||
|
||||
void screenDoDumpToDiskIfRequired()
|
||||
void screenDoDumpToDiskIfRequired(void)
|
||||
{
|
||||
static unsigned char* buffer = NULL;
|
||||
static unsigned int buffer_size = 0;
|
||||
|
|
|
@ -958,7 +958,7 @@ UDWORD RetStackRemember(UDWORD EvTrigIndex, UDWORD address)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL IsRetStackEmpty()
|
||||
BOOL IsRetStackEmpty(void)
|
||||
{
|
||||
if(retStackPos == (-1)) return TRUE;
|
||||
return FALSE;
|
||||
|
@ -981,7 +981,7 @@ BOOL PopRetStack(UDWORD *psVal)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
SDWORD GetCallDepth()
|
||||
SDWORD GetCallDepth(void)
|
||||
{
|
||||
return (retStackPos + 1) / 2;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include "adpcm.h"
|
||||
|
||||
char index_adjust[8] = { -1, -1, -1, -1, 2, 4, 6, 8 };
|
||||
|
||||
short step_size[89] = {
|
||||
|
@ -62,7 +64,7 @@ short adpcm_decode_sample(char code) {
|
|||
return pred_val;
|
||||
}
|
||||
|
||||
void adpcm_init() {
|
||||
void adpcm_init(void) {
|
||||
pred_val = 0;
|
||||
step_idx = 0;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef __ADPCM_H__
|
||||
#define __ADPCM_H__
|
||||
|
||||
void adpcm_init();
|
||||
void adpcm_init(void);
|
||||
void adpcm_decode(unsigned char* input, unsigned int input_size, short** output);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -183,7 +183,7 @@ BOOL cdAudio_Close( void )
|
|||
|
||||
#ifndef WZ_NOMP3
|
||||
|
||||
void mp3_refill() {
|
||||
static void mp3_refill(void) {
|
||||
while (mad_frame_decode(&mp3_frame, &mp3_stream)) {
|
||||
int size;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ BOOL cdAudio_PlayTrack( SDWORD iTrack );
|
|||
BOOL cdAudio_Stop( void );
|
||||
BOOL cdAudio_Pause( void );
|
||||
BOOL cdAudio_Resume( void );
|
||||
void cdAudio_Update();
|
||||
void cdAudio_Update(void);
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ static WZ_TRACK playlist[NB_TRACKS];
|
|||
|
||||
#define CURRENT_TRACK playlist[current_track]
|
||||
|
||||
void PlayList_Init() {
|
||||
void PlayList_Init(void) {
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < NB_TRACKS; ++i) {
|
||||
|
@ -34,7 +34,7 @@ void PlayList_Init() {
|
|||
}
|
||||
}
|
||||
|
||||
void PlayList_Quit() {
|
||||
void PlayList_Quit(void) {
|
||||
unsigned int i, j;
|
||||
|
||||
for( i = 0; i < NB_TRACKS; ++i ) {
|
||||
|
@ -148,7 +148,7 @@ void PlayList_SetTrack(unsigned int t) {
|
|||
current_song = 0;
|
||||
}
|
||||
|
||||
char* PlayList_CurrentSong() {
|
||||
char* PlayList_CurrentSong(void) {
|
||||
if (current_song >= CURRENT_TRACK.nb_songs) {
|
||||
return NULL;
|
||||
} else {
|
||||
|
@ -156,7 +156,7 @@ char* PlayList_CurrentSong() {
|
|||
}
|
||||
}
|
||||
|
||||
char* PlayList_NextSong() {
|
||||
char* PlayList_NextSong(void) {
|
||||
if (++current_song >= CURRENT_TRACK.nb_songs) {
|
||||
PlayList_Shuffle();
|
||||
current_song = 0;
|
||||
|
@ -169,6 +169,6 @@ char* PlayList_NextSong() {
|
|||
}
|
||||
}
|
||||
|
||||
void PlayList_DeleteCurrentSong() {
|
||||
void PlayList_DeleteCurrentSong(void) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue