summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-30 20:31:25 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-30 20:31:25 +0100
commit055409764ca5f7978d4c399d2c440af0ce971c4f (patch)
treed3f9b0d26c4e371720910e462e2ec918e19d5792 /src/os_mswin.c
parentc1ab67674aa0dfdcf9f0e9701ac248e3eb41b19c (diff)
downloadvim-git-055409764ca5f7978d4c399d2c440af0ce971c4f.tar.gz
patch 7.4.1213v7.4.1213
Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c49
1 files changed, 22 insertions, 27 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 16268920e..b7e3b5e5e 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -286,7 +286,7 @@ mch_early_init(void)
* 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 @@ mch_restore_title(
* 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 @@ mch_can_restore_title()
* 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 @@ mch_isFullName(char_u *fname)
* 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 @@ mch_new_shellsize(void)
* 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 @@ mch_suspend()
* Display the saved error message(s).
*/
void
-display_errors()
+display_errors(void)
{
char *p;
@@ -864,7 +863,7 @@ can_end_termcap_mode(
* return non-zero if a character is available
*/
int
-mch_char_avail()
+mch_char_avail(void)
{
/* never used */
return TRUE;
@@ -965,8 +964,7 @@ mch_icon_load_cb(char_u *fname, void *cookie)
* 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_x = 0;
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 @@ shortcut_end:
* 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 @@ serverGetVimNames(void)
}
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 @@ serverSendReply(name, reply)
}
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 @@ serverSendToVim(name, cmd, result, ptarget, asExpr, silent)
* Bring the server to the foreground.
*/
void
-serverForeground(name)
- char_u *name;
+serverForeground(char_u *name)
{
HWND target = findServer(name);
@@ -3101,7 +3096,7 @@ theend:
* Initialize the Winsock dll.
*/
void
-channel_init_winsock()
+channel_init_winsock(void)
{
WSADATA wsaData;
int wsaerr;