blink_offtime = off;
}
-/* ARGSUSED */
static VOID CALLBACK
_OnBlinkTimer(
HWND hwnd,
- UINT uMsg,
+ UINT uMsg UNUSED,
UINT idEvent,
- DWORD dwTime)
+ DWORD dwTime UNUSED)
{
MSG msg;
gui_update_cursor(TRUE, FALSE);
blink_state = BLINK_ON;
blink_timer = (UINT) SetTimer(NULL, 0, (UINT)blink_ontime,
- (TIMERPROC)_OnBlinkTimer);
+ (TIMERPROC)_OnBlinkTimer);
}
}
* Call-back routines.
*/
-/*ARGSUSED*/
static VOID CALLBACK
_OnTimer(
HWND hwnd,
- UINT uMsg,
+ UINT uMsg UNUSED,
UINT idEvent,
- DWORD dwTime)
+ DWORD dwTime UNUSED)
{
MSG msg;
s_wait_timer = 0;
}
-/*ARGSUSED*/
static void
_OnDeadChar(
- HWND hwnd,
- UINT ch,
- int cRepeat)
+ HWND hwnd UNUSED,
+ UINT ch UNUSED,
+ int cRepeat UNUSED)
{
dead_key = 1;
}
/*
* Key hit, add it to the input buffer.
*/
-/*ARGSUSED*/
static void
_OnChar(
- HWND hwnd,
+ HWND hwnd UNUSED,
UINT ch,
- int cRepeat)
+ int cRepeat UNUSED)
{
char_u string[40];
int len = 0;
/*
* Alt-Key hit, add it to the input buffer.
*/
-/*ARGSUSED*/
static void
_OnSysChar(
- HWND hwnd,
+ HWND hwnd UNUSED,
UINT cch,
- int cRepeat)
+ int cRepeat UNUSED)
{
char_u string[40]; /* Enough for multibyte character */
int len;
gui_send_mouse_event(button, x, y, repeated_click, vim_modifiers);
}
-/*ARGSUSED*/
static void
_OnMouseButtonDown(
- HWND hwnd,
- BOOL fDoubleClick,
+ HWND hwnd UNUSED,
+ BOOL fDoubleClick UNUSED,
int x,
int y,
UINT keyFlags)
}
}
-/*ARGSUSED*/
static void
_OnMouseMoveOrRelease(
- HWND hwnd,
+ HWND hwnd UNUSED,
int x,
int y,
UINT keyFlags)
return pMenu;
}
-/*ARGSUSED*/
static void
_OnMenu(
- HWND hwnd,
+ HWND hwnd UNUSED,
int id,
- HWND hwndCtl,
- UINT codeNotify)
+ HWND hwndCtl UNUSED,
+ UINT codeNotify UNUSED)
{
vimmenu_T *pMenu;
* Return the name of font "font" in allocated memory.
* Don't know how to get the actual name, thus use the provided name.
*/
-/*ARGSUSED*/
char_u *
-gui_mch_get_fontname(GuiFont font, char_u *name)
+gui_mch_get_fontname(GuiFont font UNUSED, char_u *name)
{
if (name == NULL)
return NULL;
#endif
}
-/*ARGSUSED*/
void
gui_mch_set_menu_pos(
- int x,
- int y,
- int w,
- int h)
+ int x UNUSED,
+ int y UNUSED,
+ int w UNUSED,
+ int h UNUSED)
{
/* It will be in the right place anyway */
}
* Get this message when the user clicks on the cross in the top right corner
* of a Windows95 window.
*/
-/*ARGSUSED*/
static void
-_OnClose(
- HWND hwnd)
+_OnClose(HWND hwnd UNUSED)
{
gui_shell_closed();
}
* Get a message when the window is being destroyed.
*/
static void
-_OnDestroy(
- HWND hwnd)
+_OnDestroy(HWND hwnd)
{
if (!destroying)
_OnClose(hwnd);
}
}
-/*ARGSUSED*/
static void
_OnSize(
HWND hwnd,
- UINT state,
+ UINT state UNUSED,
int cx,
int cy)
{
}
-/*ARGSUSED*/
void
-gui_mch_exit(int rc)
+gui_mch_exit(int rc UNUSED)
{
#if defined(FEAT_DIRECTX)
DWriteContext_Close(s_dwc);
* Initialise vim to use the font with the given name.
* Return FAIL if the font could not be loaded, OK otherwise.
*/
-/*ARGSUSED*/
int
-gui_mch_init_font(char_u *font_name, int fontset)
+gui_mch_init_font(char_u *font_name, int fontset UNUSED)
{
LOGFONT lf;
GuiFont font = NOFONT;
/*
* Set the window title
*/
-/*ARGSUSED*/
void
gui_mch_settitle(
char_u *title,
- char_u *icon)
+ char_u *icon UNUSED)
{
set_window_title(s_hwnd, (title == NULL ? "VIM" : (char *)title));
}
}
#endif /* FEAT_BROWSE */
-/*ARGSUSED*/
static void
_OnDropFiles(
- HWND hwnd,
+ HWND hwnd UNUSED,
HDROP hDrop)
{
#ifdef FEAT_WINDOWS
#endif
}
-/*ARGSUSED*/
static int
_OnScroll(
- HWND hwnd,
+ HWND hwnd UNUSED,
HWND hwndCtl,
UINT code,
int pos)
* Return pointer to buffer in "tofree".
* Returns zero when out of memory.
*/
-/*ARGSUSED*/
int
get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree)
{
/*
* Set the size of the window to the given width and height in pixels.
*/
-/*ARGSUSED*/
void
-gui_mch_set_shellsize(int width, int height,
- int min_width, int min_height, int base_width, int base_height,
+gui_mch_set_shellsize(
+ int width,
+ int height,
+ int min_width UNUSED,
+ int min_height UNUSED,
+ int base_width UNUSED,
+ int base_height UNUSED,
int direction)
{
RECT workarea_rect;
/*
* handle WM_IME_NOTIFY message
*/
-/*ARGSUSED*/
static LRESULT
-_OnImeNotify(HWND hWnd, DWORD dwCommand, DWORD dwData)
+_OnImeNotify(HWND hWnd, DWORD dwCommand, DWORD dwData UNUSED)
{
LRESULT lResult = 0;
HIMC hImc;
return lResult;
}
-/*ARGSUSED*/
static LRESULT
-_OnImeComposition(HWND hwnd, WPARAM dbcs, LPARAM param)
+_OnImeComposition(HWND hwnd, WPARAM dbcs UNUSED, LPARAM param)
{
char_u *ret;
int len;
* pressed, return that button's ID - IDCANCEL (2), which is the button's
* number.
*/
-/*ARGSUSED*/
static LRESULT CALLBACK
dialog_callback(
HWND hwnd,
UINT message,
WPARAM wParam,
- LPARAM lParam)
+ LPARAM lParam UNUSED)
{
if (message == WM_INITDIALOG)
{
PostMessage(beval->balloon, WM_CLOSE, 0, 0);
}
-/*ARGSUSED*/
static VOID CALLBACK
BevalTimerProc(
- HWND hwnd,
- UINT uMsg,
- UINT_PTR idEvent,
- DWORD dwTime)
+ HWND hwnd UNUSED,
+ UINT uMsg UNUSED,
+ UINT_PTR idEvent UNUSED,
+ DWORD dwTime)
{
POINT pt;
RECT rect;
}
}
-/*ARGSUSED*/
void
-gui_mch_disable_beval_area(BalloonEval *beval)
+gui_mch_disable_beval_area(BalloonEval *beval UNUSED)
{
// TRACE0("gui_mch_disable_beval_area {{{");
KillTimer(s_textArea, BevalTimerId);
// TRACE0("gui_mch_disable_beval_area }}}");
}
-/*ARGSUSED*/
void
gui_mch_enable_beval_area(BalloonEval *beval)
{
// TRACE0("gui_mch_post_balloon }}}");
}
-/*ARGSUSED*/
BalloonEval *
gui_mch_create_beval_area(
void *target, /* ignored, always use s_textArea */
return beval;
}
-/*ARGSUSED*/
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 */
return;
* 2: Just restore icon (which we don't have)
* 3: Restore title and icon (which we don't have)
*/
-/*ARGSUSED*/
void
-mch_restore_title(
- int which)
+mch_restore_title(int which UNUSED)
{
#ifndef FEAT_GUI_MSWIN
SetConsoleTitle(g_szOrigTitle);
* When 'shellslash' set do it the other way around.
* Return OK or FAIL.
*/
-/*ARGSUSED*/
int
mch_FullName(
char_u *fname,
char_u *buf,
int len,
- int force)
+ int force UNUSED)
{
int nResult = FAIL;
}
#if defined(FEAT_GUI_MSWIN) || defined(PROTO)
-/*ARGSUSED*/
void
-mch_settmode(int tmode)
+mch_settmode(int tmode UNUSED)
{
/* nothing to do */
}
/*
* set screen mode, always fails.
*/
-/*ARGSUSED*/
int
-mch_screenmode(
- char_u *arg)
+mch_screenmode(char_u *arg UNUSED)
{
EMSG(_(e_screenmode));
return FAIL;
/*
* Debugging helper: expose the MCH_WRITE_DUMP stuff to other modules
*/
-/*ARGSUSED*/
void
-DumpPutS(
- const char *psz)
+DumpPutS(const char *psz UNUSED)
{
# ifdef MCH_WRITE_DUMP
if (fdDump)
# define PDP_RETVAL INT_PTR
#endif
-/*ARGSUSED*/
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
NONCLIENTMETRICS nm;
return FALSE;
}
-/*ARGSUSED*/
static BOOL CALLBACK
-AbortProc(HDC hdcPrn, int iCode)
+AbortProc(HDC hdcPrn UNUSED, int iCode UNUSED)
{
MSG msg;
return (ret > 0);
}
-/*ARGSUSED*/
void
-mch_print_end(prt_settings_T *psettings)
+mch_print_end(prt_settings_T *psettings UNUSED)
{
EndDoc(prt_dlg.hDC);
if (!*bUserAbort)
return pixels;
}
-/*ARGSUSED*/
static int CALLBACK
font_enumproc(
ENUMLOGFONT *elf,
- NEWTEXTMETRIC *ntm,
- int type,
+ NEWTEXTMETRIC *ntm UNUSED,
+ int type UNUSED,
LPARAM lparam)
{
/* Return value:
dyn_libintl_wputenv = null_libintl_wputenv;
}
-/*ARGSUSED*/
static char *
null_libintl_gettext(const char *msgid)
{
return (char*)msgid;
}
-/*ARGSUSED*/
static char *
null_libintl_ngettext(
const char *msgid,
return (char *)(n == 1 ? msgid : msgid_plural);
}
-/*ARGSUSED*/
static char *
-null_libintl_bindtextdomain(const char *domainname, const char *dirname)
+null_libintl_bindtextdomain(
+ const char *domainname UNUSED,
+ const char *dirname UNUSED)
{
return NULL;
}
-/*ARGSUSED*/
static char *
-null_libintl_bind_textdomain_codeset(const char *domainname,
- const char *codeset)
+null_libintl_bind_textdomain_codeset(
+ const char *domainname UNUSED,
+ const char *codeset UNUSED)
{
return NULL;
}
-/*ARGSUSED*/
static char *
-null_libintl_textdomain(const char *domainname)
+null_libintl_textdomain(const char *domainname UNUSED)
{
return NULL;
}
-/*ARGSUSED*/
int
-null_libintl_putenv(const char *envstring)
+null_libintl_putenv(const char *envstring UNUSED)
{
return 0;
}
-/*ARGSUSED*/
int
-null_libintl_wputenv(const wchar_t *envstring)
+null_libintl_wputenv(const wchar_t *envstring UNUSED)
{
return 0;
}
* For the GUI the mouse handling is in gui_w32.c.
*/
# ifdef FEAT_GUI_W32
-/*ARGSUSED*/
void
-mch_setmouse(int on)
+mch_setmouse(int on UNUSED)
{
}
# else
* If time == -1, wait forever for characters.
* Returns the number of characters read into buf.
*/
-/*ARGSUSED*/
int
mch_inchar(
- char_u *buf,
- int maxlen,
- long time,
- int tb_change_cnt)
+ char_u *buf UNUSED,
+ int maxlen UNUSED,
+ long time UNUSED,
+ int tb_change_cnt UNUSED)
{
#ifndef FEAT_GUI_W32 /* this isn't used for the GUI */
/*
* Do we have an interactive window?
*/
-/*ARGSUSED*/
int
mch_check_win(
- int argc,
- char **argv)
+ int argc UNUSED,
+ char **argv UNUSED)
{
get_exe_name();
#ifdef FEAT_GUI_W32
-/*ARGSUSED*/
void
mch_write(
- char_u *s,
- int len)
+ char_u *s UNUSED,
+ int len UNUSED)
{
/* never used */
}
/*
* Delay for "msec" milliseconds.
*/
-/*ARGSUSED*/
void
mch_delay(
long msec,
- int ignoreinput)
+ int ignoreinput UNUSED)
{
#ifdef FEAT_GUI_W32
Sleep((int)msec); /* never wait for input */
/*
* How much main memory in KiB that can be used by VIM.
*/
-/*ARGSUSED*/
long_u
-mch_total_mem(int special)
+mch_total_mem(int special UNUSED)
{
MEMORYSTATUSEX ms;