0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1208

Problem:    Using old style function declarations.
Solution:   Change to new style function declarations. (script by Hirohito
            Higashi)
This commit is contained in:
Bram Moolenaar
2016-01-30 17:24:07 +01:00
parent 66f948e928
commit 68c2f638e6
18 changed files with 687 additions and 981 deletions

View File

@@ -2246,7 +2246,7 @@ im_set_active(int active)
* Get IM status. When IM is on, return not 0. Else return 0.
*/
int
im_get_status()
im_get_status(void)
{
int status = 0;
HIMC hImc;
@@ -4525,10 +4525,7 @@ typedef struct _signicon_t
} signicon_t;
void
gui_mch_drawsign(row, col, typenr)
int row;
int col;
int typenr;
gui_mch_drawsign(int row, int col, int typenr)
{
signicon_t *sign;
int x, y, w, h;
@@ -4605,8 +4602,7 @@ close_signicon_image(signicon_t *sign)
}
void *
gui_mch_register_sign(signfile)
char_u *signfile;
gui_mch_register_sign(char_u *signfile)
{
signicon_t sign, *psign;
char_u *ext;
@@ -4661,8 +4657,7 @@ gui_mch_register_sign(signfile)
}
void
gui_mch_destroy_sign(sign)
void *sign;
gui_mch_destroy_sign(void *sign)
{
if (sign)
{
@@ -4766,10 +4761,7 @@ multiline_balloon_available(void)
}
static void
make_tooltip(beval, text, pt)
BalloonEval *beval;
char *text;
POINT pt;
make_tooltip(BalloonEval *beval, char *text, POINT pt)
{
TOOLINFO *pti;
int ToolInfoSize;
@@ -4833,19 +4825,18 @@ make_tooltip(beval, text, pt)
}
static void
delete_tooltip(beval)
BalloonEval *beval;
delete_tooltip(BalloonEval *beval)
{
PostMessage(beval->balloon, WM_CLOSE, 0, 0);
}
/*ARGSUSED*/
static VOID CALLBACK
BevalTimerProc(hwnd, uMsg, idEvent, dwTime)
HWND hwnd;
UINT uMsg;
UINT_PTR idEvent;
DWORD dwTime;
BevalTimerProc(
HWND hwnd,
UINT uMsg,
UINT_PTR idEvent,
DWORD dwTime)
{
POINT pt;
RECT rect;
@@ -4883,8 +4874,7 @@ BevalTimerProc(hwnd, uMsg, idEvent, dwTime)
/*ARGSUSED*/
void
gui_mch_disable_beval_area(beval)
BalloonEval *beval;
gui_mch_disable_beval_area(BalloonEval *beval)
{
// TRACE0("gui_mch_disable_beval_area {{{");
KillTimer(s_textArea, BevalTimerId);
@@ -4893,8 +4883,7 @@ gui_mch_disable_beval_area(beval)
/*ARGSUSED*/
void
gui_mch_enable_beval_area(beval)
BalloonEval *beval;
gui_mch_enable_beval_area(BalloonEval *beval)
{
// TRACE0("gui_mch_enable_beval_area |||");
if (beval == NULL)
@@ -4905,9 +4894,7 @@ gui_mch_enable_beval_area(beval)
}
void
gui_mch_post_balloon(beval, mesg)
BalloonEval *beval;
char_u *mesg;
gui_mch_post_balloon(BalloonEval *beval, char_u *mesg)
{
POINT pt;
// TRACE0("gui_mch_post_balloon {{{");
@@ -4928,11 +4915,11 @@ gui_mch_post_balloon(beval, mesg)
/*ARGSUSED*/
BalloonEval *
gui_mch_create_beval_area(target, mesg, mesgCB, clientData)
void *target; /* ignored, always use s_textArea */
char_u *mesg;
void (*mesgCB)(BalloonEval *, int);
void *clientData;
gui_mch_create_beval_area(
void *target, /* ignored, always use s_textArea */
char_u *mesg,
void (*mesgCB)(BalloonEval *, int),
void *clientData)
{
/* partially stolen from gui_beval.c */
BalloonEval *beval;
@@ -5010,8 +4997,7 @@ TrackUserActivity(UINT uMsg)
}
void
gui_mch_destroy_beval_area(beval)
BalloonEval *beval;
gui_mch_destroy_beval_area(BalloonEval *beval)
{
vim_free(beval);
}