From b36c6fb16458072d89e8ba1e3fda553e24325d97 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Sun, 14 Feb 1999 13:38:27 +0000 Subject: [PATCH] Corrected prototypes func() ->func(void). --- include/clipboard.h | 6 +++--- include/console.h | 44 ++++++++++++++++++++++---------------------- include/desktop.h | 6 +++--- include/keyboard.h | 4 ++-- include/ttydrv.h | 20 ++++++++++---------- include/x11drv.h | 18 +++++++++--------- 6 files changed, 49 insertions(+), 49 deletions(-) diff --git a/include/clipboard.h b/include/clipboard.h index 4bfd7242ff8..ac00b97a48d 100644 --- a/include/clipboard.h +++ b/include/clipboard.h @@ -18,13 +18,13 @@ typedef struct tagCLIPFORMAT { typedef struct _CLIPBOARD_DRIVER { - void (*pEmptyClipboard)(); + void (*pEmptyClipboard)(void); void (*pSetClipboardData)(UINT32); - BOOL32 (*pRequestSelection)(); + BOOL32 (*pRequestSelection)(void); void (*pResetOwner)(WND *, BOOL32); } CLIPBOARD_DRIVER; -CLIPBOARD_DRIVER *CLIPBOARD_GetDriver(); +CLIPBOARD_DRIVER *CLIPBOARD_GetDriver(void); extern void CLIPBOARD_ResetLock(HQUEUE16 hqRef, HQUEUE16 hqNew); extern void CLIPBOARD_DeleteRecord(LPCLIPFORMAT lpFormat, BOOL32 bChange); diff --git a/include/console.h b/include/console.h index 037c6f30d1f..6746a18f5f0 100644 --- a/include/console.h +++ b/include/console.h @@ -27,13 +27,13 @@ typedef struct CONSOLE_DRIVER { - void (*init)(); - void (*close)(); + void (*init)(void); + void (*close)(void); void (*write)(char, int, int, int); void (*moveCursor)(char, char); void (*getCursorPosition)(char *, char *); void (*getCharacterAtCursor)(char *, int *, int *, int *); - void (*clearScreen)(); + void (*clearScreen)(void); /* Color-control functions */ int (*allocColor)(int color); @@ -53,10 +53,10 @@ typedef struct CONSOLE_DRIVER void (*scrollDownWindow)(char, char, char, char, char, int, int); /* Accellerator Functions (Keyboard) */ - char (*getCharacter)(); + char (*getCharacter)(void); /* Other functions */ - void (*refresh)(); + void (*refresh)(void); /* Other data */ int norefresh; @@ -80,43 +80,43 @@ int CONSOLE_CheckForKeystroke(char *, char*); void CONSOLE_GetKeystroke(char *, char *); void CONSOLE_GetCursorPosition(char *, char *); void CONSOLE_GetCharacterAtCursor(char *, int *, int *, int *); -void CONSOLE_Refresh(); +void CONSOLE_Refresh(void); void CONSOLE_SetRefresh(int); -int CONSOLE_GetRefresh(); -void CONSOLE_ClearScreen(); -char CONSOLE_GetCharacter(); -void CONSOLE_ResizeScreen(); -void CONSOLE_NotifyResizeScreen(); +int CONSOLE_GetRefresh(void); +void CONSOLE_ClearScreen(void); +char CONSOLE_GetCharacter(void); +void CONSOLE_ResizeScreen(int, int); +void CONSOLE_NotifyResizeScreen(int, int); void CONSOLE_WriteRawString(char *); int CONSOLE_AllocColor(int); void CONSOLE_SetBackgroundColor(int fg, int bg); /* Generic Defines */ -void GENERIC_Start(); +void GENERIC_Start(void); void GENERIC_ClearWindow(char, char, char, char, int, int); void GENERIC_ScrollUpWindow(char, char, char, char, char, int, int); void GENERIC_ScrollDownWindow(char, char, char, char, char, int, int); -char GENERIC_GetCharacter(); +char GENERIC_GetCharacter(void); /* TTY specific defines */ void TTY_Write(char out, int fg_color, int bg_color, int attribute); -void TTY_Start(); +void TTY_Start(void); void TTY_GetKeystroke(char *, char *); #ifdef WINE_NCURSES /* ncurses defines */ void NCURSES_Write(char out, int fg_color, int bg_color, int attribute); -void NCURSES_Start(); -void NCURSES_Init(); -void NCURSES_Close(); +void NCURSES_Start(void); +void NCURSES_Init(void); +void NCURSES_Close(void); int NCURSES_CheckForKeystroke(char *, char *); void NCURSES_GetKeystroke(char *, char *); void NCURSES_MoveCursor(char ,char); void NCURSES_GetCursorPosition(char *, char *); void NCURSES_GetCharacterAtCursor(char *, int *, int *, int *); -void NCURSES_Refresh(); -void NCURSES_ClearScreen(); +void NCURSES_Refresh(void); +void NCURSES_ClearScreen(void); void NCURSES_NotifyResizeScreen(int x, int y); int NCURSES_AllocColor(int); void NCURSES_SetBackgroundColor(int fg, int bg); @@ -124,9 +124,9 @@ void NCURSES_SetBackgroundColor(int fg, int bg); #endif /* WINE_NCURSES */ /* Xterm specific defines */ -void XTERM_Start(); -void XTERM_Close(); -void XTERM_Init(); +void XTERM_Start(void); +void XTERM_Close(void); +void XTERM_Init(void); void XTERM_ResizeScreen(int x, int y); /* Color defines */ diff --git a/include/desktop.h b/include/desktop.h index 91e2ee2d331..21e7e6ee80c 100644 --- a/include/desktop.h +++ b/include/desktop.h @@ -29,9 +29,9 @@ typedef struct _DESKTOP_DRIVER { void (*pFinalize)(struct tagDESKTOP *pDesktop); } DESKTOP_DRIVER; -extern int DESKTOP_GetScreenWidth(); -extern int DESKTOP_GetScreenHeight(); -extern int DESKTOP_GetScreenDepth(); +extern int DESKTOP_GetScreenWidth(void); +extern int DESKTOP_GetScreenHeight(void); +extern int DESKTOP_GetScreenDepth(void); extern BOOL32 DESKTOP_SetPattern( LPCSTR pattern ); extern LRESULT WINAPI DesktopWndProc( HWND32 hwnd, UINT32 message, diff --git a/include/keyboard.h b/include/keyboard.h index 45ed3bbb21c..32891c96b52 100644 --- a/include/keyboard.h +++ b/include/keyboard.h @@ -30,14 +30,14 @@ VOID WINAPI KEYBOARD_Disable(VOID); /* Wine internals */ typedef struct _KEYBOARD_DRIVER { - void (*pInit)(); + void (*pInit)(void); WORD (*pVkKeyScan)(CHAR); UINT16 (*pMapVirtualKey)(UINT16, UINT16); INT16 (*pGetKeyNameText)(LONG, LPSTR, INT16); INT16 (*pToAscii)(UINT16, UINT16, LPBYTE, LPVOID, UINT16); } KEYBOARD_DRIVER; -extern KEYBOARD_DRIVER *KEYBOARD_GetDriver(); +extern KEYBOARD_DRIVER *KEYBOARD_GetDriver(void); extern void KEYBOARD_SendEvent(BYTE bVk, BYTE bScan, DWORD dwFlags, DWORD posX, DWORD posY, DWORD time); diff --git a/include/ttydrv.h b/include/ttydrv.h index b31477ab3c3..1c38239879a 100644 --- a/include/ttydrv.h +++ b/include/ttydrv.h @@ -18,8 +18,8 @@ struct tagWND; typedef struct { } TTYDRV_PDEVICE; -extern BOOL32 TTYDRV_GDI_Initialize(); -extern void TTDRV_GDI_Finalize(); +extern BOOL32 TTYDRV_GDI_Initialize(void); +extern void TTDRV_GDI_Finalize(void); extern BOOL32 TTYDRV_GDI_CreateDC(struct tagDC *dc, LPCSTR driver, LPCSTR device, LPCSTR output, const DEVMODE16 *initData); extern BOOL32 TTYDRV_GDI_DeleteDC(struct tagDC *dc); extern INT32 TTYDRV_GDI_Escape(struct tagDC *dc, INT32 nEscape, INT32 cbInput, SEGPTR lpInData, SEGPTR lpOutData); @@ -28,9 +28,9 @@ extern INT32 TTYDRV_GDI_Escape(struct tagDC *dc, INT32 nEscape, INT32 cbInput, S extern struct _CLIPBOARD_DRIVER TTYDRV_CLIPBOARD_Driver; -extern void TTYDRV_CLIPBOARD_EmptyClipboard(); +extern void TTYDRV_CLIPBOARD_EmptyClipboard(void); extern void TTYDRV_CLIPBOARD_SetClipboardData(UINT32 wFormat); -extern BOOL32 TTYDRV_CLIPBOARD_RequestSelection(); +extern BOOL32 TTYDRV_CLIPBOARD_RequestSelection(void); extern void TTYDRV_CLIPBOARD_ResetOwner(struct tagWND *pWnd, BOOL32 bFooBar); /* TTY desktop driver */ @@ -52,7 +52,7 @@ extern void TTYDRV_EVENT_AddIO(int fd, unsigned flag); extern void TTYDRV_EVENT_DeleteIO(int fd, unsigned flag); extern BOOL32 TTYDRV_EVENT_WaitNetEvent(BOOL32 sleep, BOOL32 peek); extern void TTYDRV_EVENT_Synchronize(void); -extern BOOL32 TTYDRV_EVENT_CheckFocus( void ); +extern BOOL32 TTYDRV_EVENT_CheckFocus(void); extern BOOL32 TTYDRV_EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state); extern void TTYDRV_EVENT_DummyMotionNotify(void); extern BOOL32 TTYDRV_EVENT_Pending(void); @@ -70,12 +70,12 @@ extern INT16 TTYDRV_KEYBOARD_ToAscii(UINT16 virtKey, UINT16 scanCode, LPBYTE lpK /* TTY main driver */ -extern void TTYDRV_MAIN_Finalize(); -extern void TTYDRV_MAIN_Initialize(); +extern void TTYDRV_MAIN_Finalize(void); +extern void TTYDRV_MAIN_Initialize(void); extern void TTYDRV_MAIN_ParseOptions(int *argc, char *argv[]); -extern void TTYDRV_MAIN_Create(); -extern void TTYDRV_MAIN_SaveSetup(); -extern void TTYDRV_MAIN_RestoreSetup(); +extern void TTYDRV_MAIN_Create(void); +extern void TTYDRV_MAIN_SaveSetup(void); +extern void TTYDRV_MAIN_RestoreSetup(void); /* TTY monitor driver */ diff --git a/include/x11drv.h b/include/x11drv.h index 1fbd321c432..a49e5e4506e 100644 --- a/include/x11drv.h +++ b/include/x11drv.h @@ -218,9 +218,9 @@ extern int *X11DRV_DIB_BuildColorMap( struct tagDC *dc, WORD coloruse, extern struct _CLIPBOARD_DRIVER X11DRV_CLIPBOARD_Driver; -extern void X11DRV_CLIPBOARD_EmptyClipboard(); +extern void X11DRV_CLIPBOARD_EmptyClipboard(void); extern void X11DRV_CLIPBOARD_SetClipboardData(UINT32 wFormat); -extern BOOL32 X11DRV_CLIPBOARD_RequestSelection(); +extern BOOL32 X11DRV_CLIPBOARD_RequestSelection(void); extern void X11DRV_CLIPBOARD_ResetOwner(struct tagWND *pWnd, BOOL32 bFooBar); void X11DRV_CLIPBOARD_ReadSelection(Window w, Atom prop); @@ -278,15 +278,15 @@ extern void KEYBOARD_UpdateState ( void ); /* X11 main driver */ extern Display *display; -extern Screen *X11DRV_GetXScreen(); -extern Window X11DRV_GetXRootWindow(); +extern Screen *X11DRV_GetXScreen(void); +extern Window X11DRV_GetXRootWindow(void); -extern void X11DRV_MAIN_Finalize(); -extern void X11DRV_MAIN_Initialize(); +extern void X11DRV_MAIN_Finalize(void); +extern void X11DRV_MAIN_Initialize(void); extern void X11DRV_MAIN_ParseOptions(int *argc, char *argv[]); -extern void X11DRV_MAIN_Create(); -extern void X11DRV_MAIN_SaveSetup(); -extern void X11DRV_MAIN_RestoreSetup(); +extern void X11DRV_MAIN_Create(void); +extern void X11DRV_MAIN_SaveSetup(void); +extern void X11DRV_MAIN_RestoreSetup(void); /* X11 monitor driver */