summaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-22 20:23:18 +0000
committertron <tron@openttd.org>2005-01-22 20:23:18 +0000
commit189ca7370762dca088a13d08ccb035e364758abb (patch)
treef77535f8809840126757131b192e611f6d912bdf /hal.h
parent7984a9a5007f4bdf1107cdf646c42e3e137f65cf (diff)
downloadopenttd-189ca7370762dca088a13d08ccb035e364758abb.tar.xz
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/hal.h b/hal.h
index 9941c4749..3d7c34f0a 100644
--- a/hal.h
+++ b/hal.h
@@ -3,14 +3,14 @@
typedef struct {
char *(*start)(char **parm);
- void (*stop)();
+ void (*stop)(void);
} HalCommonDriver;
typedef struct {
const char *(*start)(char **parm);
- void (*stop)();
+ void (*stop)(void);
void (*make_dirty)(int left, int top, int width, int height);
- int (*main_loop)();
+ int (*main_loop)(void);
bool (*change_resolution)(int w, int h);
} HalVideoDriver;
@@ -21,16 +21,16 @@ enum {
typedef struct {
char *(*start)(char **parm);
- void (*stop)();
+ void (*stop)(void);
} HalSoundDriver;
typedef struct {
char *(*start)(char **parm);
- void (*stop)();
+ void (*stop)(void);
void (*play_song)(const char *filename);
- void (*stop_song)();
- bool (*is_song_playing)();
+ void (*stop_song)(void);
+ bool (*is_song_playing)(void);
void (*set_volume)(byte vol);
} HalMusicDriver;
@@ -83,7 +83,7 @@ enum DriverType {
MUSIC_DRIVER = 2,
};
-extern void GameLoop();
+extern void GameLoop(void);
extern bool _dbg_screen_rect;
void LoadDriver(int driver, const char *name);
@@ -141,7 +141,7 @@ FiosItem *FiosGetSavegameList(int *num, int mode);
// Get a list of scenarios
FiosItem *FiosGetScenarioList(int *num, int mode);
// Free the list of savegames
-void FiosFreeSavegameList();
+void FiosFreeSavegameList(void);
// Browse to. Returns a filename w/path if we reached a file.
char *FiosBrowseTo(const FiosItem *item);
// Get descriptive texts.
@@ -153,6 +153,6 @@ void FiosDelete(const char *name);
// Make a filename from a name
void FiosMakeSavegameName(char *buf, const char *name);
-void CreateConsole();
+void CreateConsole(void);
#endif /* HAL_H */