win32.c
changeset 1102 316643e34104
parent 1040 71a267bebb29
child 1230 701163ef52b8
--- a/win32.c	Sun Jan 23 08:34:39 2005 +0000
+++ b/win32.c	Sun Jan 23 10:34:39 2005 +0000
@@ -43,7 +43,7 @@
 extern const HalMusicDriver _dmusic_midi_driver;
 #endif
 
-static void MakePalette()
+static void MakePalette(void)
 {
 	LOGPALETTE *pal;
 	int i;
@@ -178,7 +178,7 @@
 	}
 }
 
-void DoExitSave();
+void DoExitSave(void);
 
 static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 {
@@ -420,7 +420,7 @@
 	return DefWindowProc(hwnd, msg, wParam, lParam);
 }
 
-static void RegisterWndClass()
+static void RegisterWndClass(void)
 {
 	static bool registered;
 	if (!registered) {
@@ -581,7 +581,7 @@
 	{1920, 1200}
 };
 
-static void FindResolutions()
+static void FindResolutions(void)
 {
 	int i = 0, n = 0;
 	DEVMODE dm;
@@ -629,7 +629,7 @@
 	return NULL;
 }
 
-static void Win32GdiStop()
+static void Win32GdiStop(void)
 {
 	if ( _wnd.fullscreen ) {
 		ChangeDisplaySettings(NULL, 0);
@@ -669,14 +669,14 @@
 	InvalidateRect(_wnd.main_wnd, &r, FALSE);
 }
 
-static void CheckPaletteAnim()
+static void CheckPaletteAnim(void)
 {
 	if (_pal_last_dirty == -1)
 		return;
 	InvalidateRect(_wnd.main_wnd, NULL, FALSE);
 }
 
-static int Win32GdiMainLoop()
+static int Win32GdiMainLoop(void)
 {
 	MSG mesg;
 	uint32 next_tick = GetTickCount() + 30, cur_ticks;
@@ -780,7 +780,7 @@
 	SetEvent(_midi.wait_obj);
 }
 
-static void Win32MidiStopSong()
+static void Win32MidiStopSong(void)
 {
 	if (_midi.playing) {
 		_midi.stop_song = true;
@@ -789,7 +789,7 @@
 	}
 }
 
-static bool Win32MidiIsSongPlaying()
+static bool Win32MidiIsSongPlaying(void)
 {
 	return _midi.playing;
 }
@@ -820,7 +820,7 @@
 	return true;
 }
 
-static void MidiIntStopSong()
+static void MidiIntStopSong(void)
 {
 	MidiSendCommand("close all");
 }
@@ -831,7 +831,7 @@
 	midiOutSetVolume((HMIDIOUT)-1, v + (v<<16));
 }
 
-static bool MidiIntIsSongPlaying()
+static bool MidiIntIsSongPlaying(void)
 {
 	char buf[16];
 	mciSendStringA("status song mode", buf, sizeof(buf), 0);
@@ -885,7 +885,7 @@
 	return 0;
 }
 
-static void Win32MidiStop()
+static void Win32MidiStop(void)
 {
 	_midi.terminate = true;
 	SetEvent(_midi.wait_obj);
@@ -914,7 +914,7 @@
 		error("waveOutPrepareHeader failed");
 }
 
-static void FillHeaders()
+static void FillHeaders(void)
 {
 	WAVEHDR *hdr;
 	for(hdr=_wave_hdr; hdr != endof(_wave_hdr); hdr++) {
@@ -957,7 +957,7 @@
 	return NULL;
 }
 
-static void Win32SoundStop()
+static void Win32SoundStop(void)
 {
 	HWAVEOUT waveout = _waveout;
 	_waveout = NULL;
@@ -1333,14 +1333,14 @@
 	return FALSE;
 }
 
-static void Handler2()
+static void Handler2(void)
 {
 	ShowCursor(TRUE);
 	ShowWindow(GetActiveWindow(), FALSE);
 	DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(100), NULL, CrashDialogFunc);
 }
 
-extern bool CloseConsoleLogIfActive();
+extern bool CloseConsoleLogIfActive(void);
 
 static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
 {
@@ -1460,7 +1460,7 @@
 	return EXCEPTION_EXECUTE_HANDLER;
 }
 
-static void Win32InitializeExceptions()
+static void Win32InitializeExceptions(void)
 {
 	_asm {
 		mov _safe_esp,esp
@@ -1485,7 +1485,7 @@
 static FiosItem *_fios_items;
 static int _fios_count, _fios_alloc;
 
-static FiosItem *FiosAlloc()
+static FiosItem *FiosAlloc(void)
 {
 	if (_fios_count == _fios_alloc) {
 		_fios_alloc += 256;
@@ -1716,7 +1716,7 @@
 }
 
 // Free the list of savegames
-void FiosFreeSavegameList()
+void FiosFreeSavegameList(void)
 {
 	free(_fios_items);
 	_fios_items = NULL;
@@ -1856,7 +1856,7 @@
 	{NULL}
 };
 
-byte GetOSVersion()
+byte GetOSVersion(void)
 {
 	OSVERSIONINFO osvi;
 
@@ -1956,7 +1956,7 @@
 }
 #endif
 
-void CreateConsole()
+void CreateConsole(void)
 {
 	HANDLE hand;
 	CONSOLE_SCREEN_BUFFER_INFO coninfo;