patch 7.4.1213
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 1626892..b7e3b5e 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -286,7 +286,7 @@
* Return TRUE if the input comes from a terminal, FALSE otherwise.
*/
int
-mch_input_isatty()
+mch_input_isatty(void)
{
#ifdef FEAT_GUI_MSWIN
return OK; /* GUI always has a tty */
@@ -355,7 +355,7 @@
* Return TRUE if we can restore the title (we can)
*/
int
-mch_can_restore_title()
+mch_can_restore_title(void)
{
return TRUE;
}
@@ -365,7 +365,7 @@
* Return TRUE if we can restore the icon title (we can't)
*/
int
-mch_can_restore_icon()
+mch_can_restore_icon(void)
{
return FALSE;
}
@@ -486,8 +486,7 @@
* When the path looks like a URL leave it unmodified.
*/
void
-slash_adjust(p)
- char_u *p;
+slash_adjust(char_u *p)
{
if (path_with_url(p))
return;
@@ -708,7 +707,7 @@
* We have no job control, so fake it by starting a new shell.
*/
void
-mch_suspend()
+mch_suspend(void)
{
suspend_shell();
}
@@ -723,7 +722,7 @@
* Display the saved error message(s).
*/
void
-display_errors()
+display_errors(void)
{
char *p;
@@ -864,7 +863,7 @@
* return non-zero if a character is available
*/
int
-mch_char_avail()
+mch_char_avail(void)
{
/* never used */
return TRUE;
@@ -965,8 +964,7 @@
* Try loading an icon file from 'runtimepath'.
*/
int
-mch_icon_load(iconp)
- HANDLE *iconp;
+mch_icon_load(HANDLE *iconp)
{
return do_in_runtimepath((char_u *)"bitmaps/vim.ico",
FALSE, mch_icon_load_cb, iconp);
@@ -1831,9 +1829,7 @@
static int prt_pos_y = 0;
void
-mch_print_start_line(margin, page_line)
- int margin;
- int page_line;
+mch_print_start_line(int margin, int page_line)
{
if (margin)
prt_pos_x = -prt_number_width;
@@ -2070,7 +2066,7 @@
* Bring ourselves to the foreground. Does work if the OS doesn't allow it.
*/
void
-win32_set_foreground()
+win32_set_foreground(void)
{
# ifndef FEAT_GUI
GetConsoleHwnd(); /* get value of s_hwnd */
@@ -2486,9 +2482,9 @@
}
int
-serverSendReply(name, reply)
- char_u *name; /* Where to send. */
- char_u *reply; /* What to send. */
+serverSendReply(
+ char_u *name, /* Where to send. */
+ char_u *reply) /* What to send. */
{
HWND target;
COPYDATASTRUCT data;
@@ -2519,13 +2515,13 @@
}
int
-serverSendToVim(name, cmd, result, ptarget, asExpr, silent)
- char_u *name; /* Where to send. */
- char_u *cmd; /* What to send. */
- char_u **result; /* Result of eval'ed expression */
- void *ptarget; /* HWND of server */
- int asExpr; /* Expression or keys? */
- int silent; /* don't complain about no server */
+serverSendToVim(
+ char_u *name, /* Where to send. */
+ char_u *cmd, /* What to send. */
+ char_u **result, /* Result of eval'ed expression */
+ void *ptarget, /* HWND of server */
+ int asExpr, /* Expression or keys? */
+ int silent) /* don't complain about no server */
{
HWND target;
COPYDATASTRUCT data;
@@ -2578,8 +2574,7 @@
* Bring the server to the foreground.
*/
void
-serverForeground(name)
- char_u *name;
+serverForeground(char_u *name)
{
HWND target = findServer(name);
@@ -3101,7 +3096,7 @@
* Initialize the Winsock dll.
*/
void
-channel_init_winsock()
+channel_init_winsock(void)
{
WSADATA wsaData;
int wsaerr;