mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[APPLICATIONS]
- Change all C function prototype declarations with an empty argument list to use void, or the list specified in the function definition. According to the C language specification, such a declaration means "no information about the number or types of the parameters is supplied". This can expose cases where gcc allows us to pass an excessive amount of arguments to functions in certain cases. Thanks to Thomas Faber for informing us about this. svn path=/trunk/; revision=51027
This commit is contained in:
parent
f51eb1ce60
commit
bd9d264de3
10 changed files with 39 additions and 39 deletions
|
@ -43,10 +43,10 @@ INT_PTR CALLBACK NetworkPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPAR
|
|||
INT_PTR CALLBACK HelpPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
/* DirectDraw tests */
|
||||
VOID DDTests();
|
||||
VOID DDTests(VOID);
|
||||
|
||||
/* Direct3D tests */
|
||||
VOID D3DTests();
|
||||
VOID D3DTests(VOID);
|
||||
|
||||
/* DirectSound initialization */
|
||||
void InitializeDirectSoundPage(PDXDIAG_CONTEXT pContext);
|
||||
|
|
|
@ -16,7 +16,7 @@ extern bool fGameStarted;
|
|||
|
||||
extern DWORD dwOptions;
|
||||
|
||||
void CreateSol();
|
||||
void CreateSol(void);
|
||||
void NewGame(void);
|
||||
|
||||
#define NUM_ROW_STACKS 7
|
||||
|
|
|
@ -25,7 +25,7 @@ extern DWORD dwDifficulty;
|
|||
extern TCHAR MsgDeal[];
|
||||
extern TCHAR MsgWin[];
|
||||
|
||||
void CreateSpider();
|
||||
void CreateSpider(void);
|
||||
void NewGame(void);
|
||||
|
||||
bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards);
|
||||
|
|
|
@ -32,5 +32,5 @@ extern BOOL bInvertColors;
|
|||
extern BOOL bStartMinimized;
|
||||
extern BOOL bShowMagnifier;
|
||||
|
||||
void LoadSettings();
|
||||
void SaveSettings();
|
||||
void LoadSettings(void);
|
||||
void SaveSettings(void);
|
||||
|
|
|
@ -141,7 +141,7 @@ struct cmd {
|
|||
char c_bell; /* give bell when command completes */
|
||||
char c_conn; /* must be connected to use command */
|
||||
char c_proxy; /* proxy server may execute */
|
||||
void (*c_handler)(); /* function to call */
|
||||
void (*c_handler)(void); /* function to call */
|
||||
};
|
||||
|
||||
struct macel {
|
||||
|
|
|
@ -8,8 +8,8 @@ int fputcSocket(int s, char putChar);
|
|||
int fputSocket(int s, char *putChar, int len);
|
||||
char *fgetsSocket(int s, char *string);
|
||||
|
||||
char *hookup();
|
||||
char **glob();
|
||||
char *hookup(void);
|
||||
char **glob(void);
|
||||
int herror(char *s);
|
||||
|
||||
int getreply(int expecteof);
|
||||
|
@ -43,22 +43,22 @@ void blkfree(char **av0);
|
|||
int getit(int argc, const char *argv[], int restartit, const char *mode);
|
||||
int sleep(int time);
|
||||
|
||||
char *tail();
|
||||
void setbell(), setdebug();
|
||||
void setglob(), sethash(), setport();
|
||||
void setprompt();
|
||||
void settrace(), setverbose();
|
||||
void settype(), setform(), setstruct();
|
||||
void restart(), syst();
|
||||
void cd(), lcd(), delete(), mdelete();
|
||||
void ls(), mls(), get(), mget(), help(), append(), put(), mput(), reget();
|
||||
void status();
|
||||
void renamefile();
|
||||
void quote(), rmthelp(), site();
|
||||
void pwd(), makedir(), removedir(), setcr();
|
||||
void account(), doproxy(), reset(), setcase(), setntrans(), setnmap();
|
||||
void setsunique(), setrunique(), cdup(), macdef();
|
||||
void sizecmd(), modtime(), newer(), rmtstatus();
|
||||
void do_chmod(), do_umask(), idle();
|
||||
void shell(), user(), fsetmode();
|
||||
struct cmd *getcmd();
|
||||
char *tail(void);
|
||||
void setbell(void), setdebug(void);
|
||||
void setglob(void), sethash(void), setport(void);
|
||||
void setprompt(void);
|
||||
void settrace(void), setverbose(void);
|
||||
void settype(void), setform(void), setstruct(void);
|
||||
void restart(void), syst(void);
|
||||
void cd(void), lcd(void), delete(void), mdelete(void);
|
||||
void ls(void), mls(void), get(void), mget(void), help(void), append(void), put(void), mput(void), reget(void);
|
||||
void status(void);
|
||||
void renamefile(void);
|
||||
void quote(void), rmthelp(void), site(void);
|
||||
void pwd(void), makedir(void), removedir(void), setcr(void);
|
||||
void account(void), doproxy(void), reset(void), setcase(void), setntrans(void), setnmap(void);
|
||||
void setsunique(void), setrunique(void), cdup(void), macdef(void);
|
||||
void sizecmd(void), modtime(void), newer(void), rmtstatus(void);
|
||||
void do_chmod(void), do_umask(void), idle(void);
|
||||
void shell(void), user(void), fsetmode(void);
|
||||
struct cmd *getcmd(void);
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
#include <stdlib.h>
|
||||
#include <windows.h>
|
||||
|
||||
void help();
|
||||
int unimplemented();
|
||||
void help(void);
|
||||
int unimplemented(void);
|
||||
|
||||
|
||||
INT cmdHelp(INT argc, CHAR **argv);
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
* PROGRAMMERS: Benedikt Freisen
|
||||
*/
|
||||
|
||||
int mirrorRotateDlg();
|
||||
int mirrorRotateDlg(void);
|
||||
|
||||
int attributesDlg();
|
||||
int attributesDlg(void);
|
||||
|
||||
int changeSizeDlg();
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
* PROGRAMMERS: Benedikt Freisen
|
||||
*/
|
||||
|
||||
void newReversible();
|
||||
void newReversible(void);
|
||||
|
||||
void undo();
|
||||
void undo(void);
|
||||
|
||||
void redo();
|
||||
void redo(void);
|
||||
|
||||
void resetToU1();
|
||||
void resetToU1(void);
|
||||
|
||||
void clearHistory();
|
||||
void clearHistory(void);
|
||||
|
||||
void insertReversible();
|
||||
void insertReversible(HBITMAP hbm);
|
||||
|
||||
void cropReversible(int width, int height, int xOffset, int yOffset);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* PROGRAMMERS: Benedikt Freisen
|
||||
*/
|
||||
|
||||
void placeSelWin();
|
||||
void placeSelWin(void);
|
||||
|
||||
void startPaintingL(HDC hdc, short x, short y, int fg, int bg);
|
||||
|
||||
|
|
Loading…
Reference in a new issue