mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.0.0281: some files are still using ARGSUSED instead of UNUSED
Problem: MS-Windows files are still using ARGSUSED while most other files have UNUSED. Solution: Change ARGSUSED to UNUSED or delete it.
This commit is contained in:
114
src/gui_w32.c
114
src/gui_w32.c
@@ -558,13 +558,12 @@ gui_mch_set_blinking(long wait, long on, long off)
|
|||||||
blink_offtime = off;
|
blink_offtime = off;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ARGSUSED */
|
|
||||||
static VOID CALLBACK
|
static VOID CALLBACK
|
||||||
_OnBlinkTimer(
|
_OnBlinkTimer(
|
||||||
HWND hwnd,
|
HWND hwnd,
|
||||||
UINT uMsg,
|
UINT uMsg UNUSED,
|
||||||
UINT idEvent,
|
UINT idEvent,
|
||||||
DWORD dwTime)
|
DWORD dwTime UNUSED)
|
||||||
{
|
{
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
|
||||||
@@ -644,13 +643,12 @@ gui_mch_start_blink(void)
|
|||||||
* Call-back routines.
|
* Call-back routines.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static VOID CALLBACK
|
static VOID CALLBACK
|
||||||
_OnTimer(
|
_OnTimer(
|
||||||
HWND hwnd,
|
HWND hwnd,
|
||||||
UINT uMsg,
|
UINT uMsg UNUSED,
|
||||||
UINT idEvent,
|
UINT idEvent,
|
||||||
DWORD dwTime)
|
DWORD dwTime UNUSED)
|
||||||
{
|
{
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
|
||||||
@@ -667,12 +665,11 @@ _OnTimer(
|
|||||||
s_wait_timer = 0;
|
s_wait_timer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnDeadChar(
|
_OnDeadChar(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
UINT ch,
|
UINT ch UNUSED,
|
||||||
int cRepeat)
|
int cRepeat UNUSED)
|
||||||
{
|
{
|
||||||
dead_key = 1;
|
dead_key = 1;
|
||||||
}
|
}
|
||||||
@@ -752,12 +749,11 @@ char_to_string(int ch, char_u *string, int slen, int had_alt)
|
|||||||
/*
|
/*
|
||||||
* Key hit, add it to the input buffer.
|
* Key hit, add it to the input buffer.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnChar(
|
_OnChar(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
UINT ch,
|
UINT ch,
|
||||||
int cRepeat)
|
int cRepeat UNUSED)
|
||||||
{
|
{
|
||||||
char_u string[40];
|
char_u string[40];
|
||||||
int len = 0;
|
int len = 0;
|
||||||
@@ -777,12 +773,11 @@ _OnChar(
|
|||||||
/*
|
/*
|
||||||
* Alt-Key hit, add it to the input buffer.
|
* Alt-Key hit, add it to the input buffer.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnSysChar(
|
_OnSysChar(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
UINT cch,
|
UINT cch,
|
||||||
int cRepeat)
|
int cRepeat UNUSED)
|
||||||
{
|
{
|
||||||
char_u string[40]; /* Enough for multibyte character */
|
char_u string[40]; /* Enough for multibyte character */
|
||||||
int len;
|
int len;
|
||||||
@@ -861,11 +856,10 @@ _OnMouseEvent(
|
|||||||
gui_send_mouse_event(button, x, y, repeated_click, vim_modifiers);
|
gui_send_mouse_event(button, x, y, repeated_click, vim_modifiers);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnMouseButtonDown(
|
_OnMouseButtonDown(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
BOOL fDoubleClick,
|
BOOL fDoubleClick UNUSED,
|
||||||
int x,
|
int x,
|
||||||
int y,
|
int y,
|
||||||
UINT keyFlags)
|
UINT keyFlags)
|
||||||
@@ -960,10 +954,9 @@ _OnMouseButtonDown(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnMouseMoveOrRelease(
|
_OnMouseMoveOrRelease(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
int x,
|
int x,
|
||||||
int y,
|
int y,
|
||||||
UINT keyFlags)
|
UINT keyFlags)
|
||||||
@@ -1038,13 +1031,12 @@ gui_mswin_find_menu(
|
|||||||
return pMenu;
|
return pMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnMenu(
|
_OnMenu(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
int id,
|
int id,
|
||||||
HWND hwndCtl,
|
HWND hwndCtl UNUSED,
|
||||||
UINT codeNotify)
|
UINT codeNotify UNUSED)
|
||||||
{
|
{
|
||||||
vimmenu_T *pMenu;
|
vimmenu_T *pMenu;
|
||||||
|
|
||||||
@@ -1527,9 +1519,8 @@ gui_mch_get_font(
|
|||||||
* Return the name of font "font" in allocated memory.
|
* Return the name of font "font" in allocated memory.
|
||||||
* Don't know how to get the actual name, thus use the provided name.
|
* Don't know how to get the actual name, thus use the provided name.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
char_u *
|
char_u *
|
||||||
gui_mch_get_fontname(GuiFont font, char_u *name)
|
gui_mch_get_fontname(GuiFont font UNUSED, char_u *name)
|
||||||
{
|
{
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -2175,13 +2166,12 @@ gui_mch_enable_menu(int flag)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
gui_mch_set_menu_pos(
|
gui_mch_set_menu_pos(
|
||||||
int x,
|
int x UNUSED,
|
||||||
int y,
|
int y UNUSED,
|
||||||
int w,
|
int w UNUSED,
|
||||||
int h)
|
int h UNUSED)
|
||||||
{
|
{
|
||||||
/* It will be in the right place anyway */
|
/* It will be in the right place anyway */
|
||||||
}
|
}
|
||||||
@@ -2817,10 +2807,8 @@ _OnEndSession(void)
|
|||||||
* Get this message when the user clicks on the cross in the top right corner
|
* Get this message when the user clicks on the cross in the top right corner
|
||||||
* of a Windows95 window.
|
* of a Windows95 window.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnClose(
|
_OnClose(HWND hwnd UNUSED)
|
||||||
HWND hwnd)
|
|
||||||
{
|
{
|
||||||
gui_shell_closed();
|
gui_shell_closed();
|
||||||
}
|
}
|
||||||
@@ -2829,8 +2817,7 @@ _OnClose(
|
|||||||
* Get a message when the window is being destroyed.
|
* Get a message when the window is being destroyed.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
_OnDestroy(
|
_OnDestroy(HWND hwnd)
|
||||||
HWND hwnd)
|
|
||||||
{
|
{
|
||||||
if (!destroying)
|
if (!destroying)
|
||||||
_OnClose(hwnd);
|
_OnClose(hwnd);
|
||||||
@@ -2883,11 +2870,10 @@ _OnPaint(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnSize(
|
_OnSize(
|
||||||
HWND hwnd,
|
HWND hwnd,
|
||||||
UINT state,
|
UINT state UNUSED,
|
||||||
int cx,
|
int cx,
|
||||||
int cy)
|
int cy)
|
||||||
{
|
{
|
||||||
@@ -3124,9 +3110,8 @@ gui_mch_insert_lines(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
gui_mch_exit(int rc)
|
gui_mch_exit(int rc UNUSED)
|
||||||
{
|
{
|
||||||
#if defined(FEAT_DIRECTX)
|
#if defined(FEAT_DIRECTX)
|
||||||
DWriteContext_Close(s_dwc);
|
DWriteContext_Close(s_dwc);
|
||||||
@@ -3285,9 +3270,8 @@ gui_mch_wide_font_changed(void)
|
|||||||
* Initialise vim to use the font with the given name.
|
* Initialise vim to use the font with the given name.
|
||||||
* Return FAIL if the font could not be loaded, OK otherwise.
|
* Return FAIL if the font could not be loaded, OK otherwise.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
gui_mch_init_font(char_u *font_name, int fontset)
|
gui_mch_init_font(char_u *font_name, int fontset UNUSED)
|
||||||
{
|
{
|
||||||
LOGFONT lf;
|
LOGFONT lf;
|
||||||
GuiFont font = NOFONT;
|
GuiFont font = NOFONT;
|
||||||
@@ -3416,11 +3400,10 @@ gui_mch_newfont(void)
|
|||||||
/*
|
/*
|
||||||
* Set the window title
|
* Set the window title
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
gui_mch_settitle(
|
gui_mch_settitle(
|
||||||
char_u *title,
|
char_u *title,
|
||||||
char_u *icon)
|
char_u *icon UNUSED)
|
||||||
{
|
{
|
||||||
set_window_title(s_hwnd, (title == NULL ? "VIM" : (char *)title));
|
set_window_title(s_hwnd, (title == NULL ? "VIM" : (char *)title));
|
||||||
}
|
}
|
||||||
@@ -3772,10 +3755,9 @@ gui_mch_browse(
|
|||||||
}
|
}
|
||||||
#endif /* FEAT_BROWSE */
|
#endif /* FEAT_BROWSE */
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
_OnDropFiles(
|
_OnDropFiles(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
HDROP hDrop)
|
HDROP hDrop)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_WINDOWS
|
#ifdef FEAT_WINDOWS
|
||||||
@@ -3833,10 +3815,9 @@ _OnDropFiles(
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static int
|
static int
|
||||||
_OnScroll(
|
_OnScroll(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
HWND hwndCtl,
|
HWND hwndCtl,
|
||||||
UINT code,
|
UINT code,
|
||||||
int pos)
|
int pos)
|
||||||
@@ -3954,7 +3935,6 @@ _OnScroll(
|
|||||||
* Return pointer to buffer in "tofree".
|
* Return pointer to buffer in "tofree".
|
||||||
* Returns zero when out of memory.
|
* Returns zero when out of memory.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree)
|
get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree)
|
||||||
{
|
{
|
||||||
@@ -5588,10 +5568,14 @@ get_work_area(RECT *spi_rect)
|
|||||||
/*
|
/*
|
||||||
* Set the size of the window to the given width and height in pixels.
|
* Set the size of the window to the given width and height in pixels.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
gui_mch_set_shellsize(int width, int height,
|
gui_mch_set_shellsize(
|
||||||
int min_width, int min_height, int base_width, int base_height,
|
int width,
|
||||||
|
int height,
|
||||||
|
int min_width UNUSED,
|
||||||
|
int min_height UNUSED,
|
||||||
|
int base_width UNUSED,
|
||||||
|
int base_height UNUSED,
|
||||||
int direction)
|
int direction)
|
||||||
{
|
{
|
||||||
RECT workarea_rect;
|
RECT workarea_rect;
|
||||||
@@ -5752,9 +5736,8 @@ gui_mch_set_sp_color(guicolor_T color)
|
|||||||
/*
|
/*
|
||||||
* handle WM_IME_NOTIFY message
|
* handle WM_IME_NOTIFY message
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
static LRESULT
|
static LRESULT
|
||||||
_OnImeNotify(HWND hWnd, DWORD dwCommand, DWORD dwData)
|
_OnImeNotify(HWND hWnd, DWORD dwCommand, DWORD dwData UNUSED)
|
||||||
{
|
{
|
||||||
LRESULT lResult = 0;
|
LRESULT lResult = 0;
|
||||||
HIMC hImc;
|
HIMC hImc;
|
||||||
@@ -5802,9 +5785,8 @@ _OnImeNotify(HWND hWnd, DWORD dwCommand, DWORD dwData)
|
|||||||
return lResult;
|
return lResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static LRESULT
|
static LRESULT
|
||||||
_OnImeComposition(HWND hwnd, WPARAM dbcs, LPARAM param)
|
_OnImeComposition(HWND hwnd, WPARAM dbcs UNUSED, LPARAM param)
|
||||||
{
|
{
|
||||||
char_u *ret;
|
char_u *ret;
|
||||||
int len;
|
int len;
|
||||||
@@ -6844,13 +6826,12 @@ gui_mch_menu_grey(
|
|||||||
* pressed, return that button's ID - IDCANCEL (2), which is the button's
|
* pressed, return that button's ID - IDCANCEL (2), which is the button's
|
||||||
* number.
|
* number.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
static LRESULT CALLBACK
|
static LRESULT CALLBACK
|
||||||
dialog_callback(
|
dialog_callback(
|
||||||
HWND hwnd,
|
HWND hwnd,
|
||||||
UINT message,
|
UINT message,
|
||||||
WPARAM wParam,
|
WPARAM wParam,
|
||||||
LPARAM lParam)
|
LPARAM lParam UNUSED)
|
||||||
{
|
{
|
||||||
if (message == WM_INITDIALOG)
|
if (message == WM_INITDIALOG)
|
||||||
{
|
{
|
||||||
@@ -8536,12 +8517,11 @@ delete_tooltip(BalloonEval *beval)
|
|||||||
PostMessage(beval->balloon, WM_CLOSE, 0, 0);
|
PostMessage(beval->balloon, WM_CLOSE, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static VOID CALLBACK
|
static VOID CALLBACK
|
||||||
BevalTimerProc(
|
BevalTimerProc(
|
||||||
HWND hwnd,
|
HWND hwnd UNUSED,
|
||||||
UINT uMsg,
|
UINT uMsg UNUSED,
|
||||||
UINT_PTR idEvent,
|
UINT_PTR idEvent UNUSED,
|
||||||
DWORD dwTime)
|
DWORD dwTime)
|
||||||
{
|
{
|
||||||
POINT pt;
|
POINT pt;
|
||||||
@@ -8578,16 +8558,14 @@ BevalTimerProc(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
gui_mch_disable_beval_area(BalloonEval *beval)
|
gui_mch_disable_beval_area(BalloonEval *beval UNUSED)
|
||||||
{
|
{
|
||||||
// TRACE0("gui_mch_disable_beval_area {{{");
|
// TRACE0("gui_mch_disable_beval_area {{{");
|
||||||
KillTimer(s_textArea, BevalTimerId);
|
KillTimer(s_textArea, BevalTimerId);
|
||||||
// TRACE0("gui_mch_disable_beval_area }}}");
|
// TRACE0("gui_mch_disable_beval_area }}}");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
gui_mch_enable_beval_area(BalloonEval *beval)
|
gui_mch_enable_beval_area(BalloonEval *beval)
|
||||||
{
|
{
|
||||||
@@ -8619,7 +8597,6 @@ gui_mch_post_balloon(BalloonEval *beval, char_u *mesg)
|
|||||||
// TRACE0("gui_mch_post_balloon }}}");
|
// TRACE0("gui_mch_post_balloon }}}");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
BalloonEval *
|
BalloonEval *
|
||||||
gui_mch_create_beval_area(
|
gui_mch_create_beval_area(
|
||||||
void *target, /* ignored, always use s_textArea */
|
void *target, /* ignored, always use s_textArea */
|
||||||
@@ -8659,9 +8636,8 @@ gui_mch_create_beval_area(
|
|||||||
return beval;
|
return beval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
static void
|
||||||
Handle_WM_Notify(HWND hwnd, LPNMHDR pnmh)
|
Handle_WM_Notify(HWND hwnd UNUSED, LPNMHDR pnmh)
|
||||||
{
|
{
|
||||||
if (pnmh->idFrom != ID_BEVAL_TOOLTIP) /* it is not our tooltip */
|
if (pnmh->idFrom != ID_BEVAL_TOOLTIP) /* it is not our tooltip */
|
||||||
return;
|
return;
|
||||||
|
@@ -306,10 +306,8 @@ mch_settitle(
|
|||||||
* 2: Just restore icon (which we don't have)
|
* 2: Just restore icon (which we don't have)
|
||||||
* 3: Restore title and icon (which we don't have)
|
* 3: Restore title and icon (which we don't have)
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
mch_restore_title(
|
mch_restore_title(int which UNUSED)
|
||||||
int which)
|
|
||||||
{
|
{
|
||||||
#ifndef FEAT_GUI_MSWIN
|
#ifndef FEAT_GUI_MSWIN
|
||||||
SetConsoleTitle(g_szOrigTitle);
|
SetConsoleTitle(g_szOrigTitle);
|
||||||
@@ -345,13 +343,12 @@ mch_can_restore_icon(void)
|
|||||||
* When 'shellslash' set do it the other way around.
|
* When 'shellslash' set do it the other way around.
|
||||||
* Return OK or FAIL.
|
* Return OK or FAIL.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
mch_FullName(
|
mch_FullName(
|
||||||
char_u *fname,
|
char_u *fname,
|
||||||
char_u *buf,
|
char_u *buf,
|
||||||
int len,
|
int len,
|
||||||
int force)
|
int force UNUSED)
|
||||||
{
|
{
|
||||||
int nResult = FAIL;
|
int nResult = FAIL;
|
||||||
|
|
||||||
@@ -636,9 +633,8 @@ vim_stat(const char *name, stat_T *stp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(FEAT_GUI_MSWIN) || defined(PROTO)
|
#if defined(FEAT_GUI_MSWIN) || defined(PROTO)
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
mch_settmode(int tmode)
|
mch_settmode(int tmode UNUSED)
|
||||||
{
|
{
|
||||||
/* nothing to do */
|
/* nothing to do */
|
||||||
}
|
}
|
||||||
@@ -817,10 +813,8 @@ mch_char_avail(void)
|
|||||||
/*
|
/*
|
||||||
* set screen mode, always fails.
|
* set screen mode, always fails.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
mch_screenmode(
|
mch_screenmode(char_u *arg UNUSED)
|
||||||
char_u *arg)
|
|
||||||
{
|
{
|
||||||
EMSG(_(e_screenmode));
|
EMSG(_(e_screenmode));
|
||||||
return FAIL;
|
return FAIL;
|
||||||
@@ -996,10 +990,8 @@ mch_libcall(
|
|||||||
/*
|
/*
|
||||||
* Debugging helper: expose the MCH_WRITE_DUMP stuff to other modules
|
* Debugging helper: expose the MCH_WRITE_DUMP stuff to other modules
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
DumpPutS(
|
DumpPutS(const char *psz UNUSED)
|
||||||
const char *psz)
|
|
||||||
{
|
{
|
||||||
# ifdef MCH_WRITE_DUMP
|
# ifdef MCH_WRITE_DUMP
|
||||||
if (fdDump)
|
if (fdDump)
|
||||||
@@ -1173,9 +1165,12 @@ swap_me(COLORREF colorref)
|
|||||||
# define PDP_RETVAL INT_PTR
|
# define PDP_RETVAL INT_PTR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static PDP_RETVAL CALLBACK
|
static PDP_RETVAL CALLBACK
|
||||||
PrintDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
PrintDlgProc(
|
||||||
|
HWND hDlg,
|
||||||
|
UINT message,
|
||||||
|
WPARAM wParam UNUSED,
|
||||||
|
LPARAM lParam UNUSED)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_GETTEXT
|
#ifdef FEAT_GETTEXT
|
||||||
NONCLIENTMETRICS nm;
|
NONCLIENTMETRICS nm;
|
||||||
@@ -1236,9 +1231,8 @@ PrintDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static BOOL CALLBACK
|
static BOOL CALLBACK
|
||||||
AbortProc(HDC hdcPrn, int iCode)
|
AbortProc(HDC hdcPrn UNUSED, int iCode UNUSED)
|
||||||
{
|
{
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
|
||||||
@@ -1683,9 +1677,8 @@ mch_print_begin(prt_settings_T *psettings)
|
|||||||
return (ret > 0);
|
return (ret > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
mch_print_end(prt_settings_T *psettings)
|
mch_print_end(prt_settings_T *psettings UNUSED)
|
||||||
{
|
{
|
||||||
EndDoc(prt_dlg.hDC);
|
EndDoc(prt_dlg.hDC);
|
||||||
if (!*bUserAbort)
|
if (!*bUserAbort)
|
||||||
@@ -2764,12 +2757,11 @@ points_to_pixels(char_u *str, char_u **end, int vertical, long_i pprinter_dc)
|
|||||||
return pixels;
|
return pixels;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static int CALLBACK
|
static int CALLBACK
|
||||||
font_enumproc(
|
font_enumproc(
|
||||||
ENUMLOGFONT *elf,
|
ENUMLOGFONT *elf,
|
||||||
NEWTEXTMETRIC *ntm,
|
NEWTEXTMETRIC *ntm UNUSED,
|
||||||
int type,
|
int type UNUSED,
|
||||||
LPARAM lparam)
|
LPARAM lparam)
|
||||||
{
|
{
|
||||||
/* Return value:
|
/* Return value:
|
||||||
|
@@ -38,13 +38,12 @@ void _cdecl SaveInst(HINSTANCE hInst);
|
|||||||
static void (_cdecl *pSaveInst)(HINSTANCE);
|
static void (_cdecl *pSaveInst)(HINSTANCE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
int WINAPI
|
int WINAPI
|
||||||
WinMain(
|
WinMain(
|
||||||
HINSTANCE hInstance,
|
HINSTANCE hInstance UNUSED,
|
||||||
HINSTANCE hPrevInst,
|
HINSTANCE hPrevInst UNUSED,
|
||||||
LPSTR lpszCmdLine,
|
LPSTR lpszCmdLine,
|
||||||
int nCmdShow)
|
int nCmdShow UNUSED)
|
||||||
{
|
{
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
char **argv;
|
char **argv;
|
||||||
|
@@ -620,14 +620,12 @@ dyn_libintl_end(void)
|
|||||||
dyn_libintl_wputenv = null_libintl_wputenv;
|
dyn_libintl_wputenv = null_libintl_wputenv;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static char *
|
static char *
|
||||||
null_libintl_gettext(const char *msgid)
|
null_libintl_gettext(const char *msgid)
|
||||||
{
|
{
|
||||||
return (char*)msgid;
|
return (char*)msgid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static char *
|
static char *
|
||||||
null_libintl_ngettext(
|
null_libintl_ngettext(
|
||||||
const char *msgid,
|
const char *msgid,
|
||||||
@@ -637,38 +635,36 @@ null_libintl_ngettext(
|
|||||||
return (char *)(n == 1 ? msgid : msgid_plural);
|
return (char *)(n == 1 ? msgid : msgid_plural);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static char *
|
static char *
|
||||||
null_libintl_bindtextdomain(const char *domainname, const char *dirname)
|
null_libintl_bindtextdomain(
|
||||||
|
const char *domainname UNUSED,
|
||||||
|
const char *dirname UNUSED)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static char *
|
static char *
|
||||||
null_libintl_bind_textdomain_codeset(const char *domainname,
|
null_libintl_bind_textdomain_codeset(
|
||||||
const char *codeset)
|
const char *domainname UNUSED,
|
||||||
|
const char *codeset UNUSED)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static char *
|
static char *
|
||||||
null_libintl_textdomain(const char *domainname)
|
null_libintl_textdomain(const char *domainname UNUSED)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
null_libintl_putenv(const char *envstring)
|
null_libintl_putenv(const char *envstring UNUSED)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
null_libintl_wputenv(const wchar_t *envstring)
|
null_libintl_wputenv(const wchar_t *envstring UNUSED)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -1060,9 +1056,8 @@ decode_key_event(
|
|||||||
* For the GUI the mouse handling is in gui_w32.c.
|
* For the GUI the mouse handling is in gui_w32.c.
|
||||||
*/
|
*/
|
||||||
# ifdef FEAT_GUI_W32
|
# ifdef FEAT_GUI_W32
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
mch_setmouse(int on)
|
mch_setmouse(int on UNUSED)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
# else
|
# else
|
||||||
@@ -1658,13 +1653,12 @@ tgetch(int *pmodifiers, WCHAR *pch2)
|
|||||||
* If time == -1, wait forever for characters.
|
* If time == -1, wait forever for characters.
|
||||||
* Returns the number of characters read into buf.
|
* Returns the number of characters read into buf.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
mch_inchar(
|
mch_inchar(
|
||||||
char_u *buf,
|
char_u *buf UNUSED,
|
||||||
int maxlen,
|
int maxlen UNUSED,
|
||||||
long time,
|
long time UNUSED,
|
||||||
int tb_change_cnt)
|
int tb_change_cnt UNUSED)
|
||||||
{
|
{
|
||||||
#ifndef FEAT_GUI_W32 /* this isn't used for the GUI */
|
#ifndef FEAT_GUI_W32 /* this isn't used for the GUI */
|
||||||
|
|
||||||
@@ -2592,11 +2586,10 @@ mch_exit(int r)
|
|||||||
/*
|
/*
|
||||||
* Do we have an interactive window?
|
* Do we have an interactive window?
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
mch_check_win(
|
mch_check_win(
|
||||||
int argc,
|
int argc UNUSED,
|
||||||
char **argv)
|
char **argv UNUSED)
|
||||||
{
|
{
|
||||||
get_exe_name();
|
get_exe_name();
|
||||||
|
|
||||||
@@ -5348,11 +5341,10 @@ termcap_mode_end(void)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef FEAT_GUI_W32
|
#ifdef FEAT_GUI_W32
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
mch_write(
|
mch_write(
|
||||||
char_u *s,
|
char_u *s UNUSED,
|
||||||
int len)
|
int len UNUSED)
|
||||||
{
|
{
|
||||||
/* never used */
|
/* never used */
|
||||||
}
|
}
|
||||||
@@ -6050,11 +6042,10 @@ mch_write(
|
|||||||
/*
|
/*
|
||||||
* Delay for "msec" milliseconds.
|
* Delay for "msec" milliseconds.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
mch_delay(
|
mch_delay(
|
||||||
long msec,
|
long msec,
|
||||||
int ignoreinput)
|
int ignoreinput UNUSED)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_GUI_W32
|
#ifdef FEAT_GUI_W32
|
||||||
Sleep((int)msec); /* never wait for input */
|
Sleep((int)msec); /* never wait for input */
|
||||||
@@ -6143,9 +6134,8 @@ mch_breakcheck(int force)
|
|||||||
/*
|
/*
|
||||||
* How much main memory in KiB that can be used by VIM.
|
* How much main memory in KiB that can be used by VIM.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
long_u
|
long_u
|
||||||
mch_total_mem(int special)
|
mch_total_mem(int special UNUSED)
|
||||||
{
|
{
|
||||||
MEMORYSTATUSEX ms;
|
MEMORYSTATUSEX ms;
|
||||||
|
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
281,
|
||||||
/**/
|
/**/
|
||||||
280,
|
280,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
/*
|
/*
|
||||||
* winclip.c
|
* winclip.c
|
||||||
*
|
*
|
||||||
* Routines common to both Win16 and Win32 for clipboard handling.
|
* Routines for Win32 clipboard handling.
|
||||||
* Also used by Cygwin, using os_unix.c.
|
* Also used by Cygwin, using os_unix.c.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -214,9 +214,8 @@ typedef struct
|
|||||||
/*
|
/*
|
||||||
* Make vim the owner of the current selection. Return OK upon success.
|
* Make vim the owner of the current selection. Return OK upon success.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
clip_mch_own_selection(VimClipboard *cbd)
|
clip_mch_own_selection(VimClipboard *cbd UNUSED)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Never actually own the clipboard. If another application sets the
|
* Never actually own the clipboard. If another application sets the
|
||||||
@@ -228,9 +227,8 @@ clip_mch_own_selection(VimClipboard *cbd)
|
|||||||
/*
|
/*
|
||||||
* Make vim NOT the owner of the current selection.
|
* Make vim NOT the owner of the current selection.
|
||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
|
||||||
void
|
void
|
||||||
clip_mch_lose_selection(VimClipboard *cbd)
|
clip_mch_lose_selection(VimClipboard *cbd UNUSED)
|
||||||
{
|
{
|
||||||
/* Nothing needs to be done here */
|
/* Nothing needs to be done here */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user