Mercurial > vim
comparison src/os_mswin.c @ 10783:04eb70c77cf4 v8.0.0281
patch 8.0.0281: some files are still using ARGSUSED instead of UNUSED
commit https://github.com/vim/vim/commit/1266d678bf2ed5072cca9381409536406f8d7b32
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 1 13:43:36 2017 +0100
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Feb 2017 13:45:04 +0100 |
parents | f54e4c691de4 |
children | c9da7f9137af |
comparison
equal
deleted
inserted
replaced
10782:9b0e9cdb2aac | 10783:04eb70c77cf4 |
---|---|
304 * which is one of: | 304 * which is one of: |
305 * 1: Just restore title | 305 * 1: Just restore title |
306 * 2: Just restore icon (which we don't have) | 306 * 2: Just restore icon (which we don't have) |
307 * 3: Restore title and icon (which we don't have) | 307 * 3: Restore title and icon (which we don't have) |
308 */ | 308 */ |
309 /*ARGSUSED*/ | |
310 void | 309 void |
311 mch_restore_title( | 310 mch_restore_title(int which UNUSED) |
312 int which) | |
313 { | 311 { |
314 #ifndef FEAT_GUI_MSWIN | 312 #ifndef FEAT_GUI_MSWIN |
315 SetConsoleTitle(g_szOrigTitle); | 313 SetConsoleTitle(g_szOrigTitle); |
316 #endif | 314 #endif |
317 } | 315 } |
343 * turning all '/'s into '\\'s and getting the correct case of each component | 341 * turning all '/'s into '\\'s and getting the correct case of each component |
344 * of the file name. Append a (back)slash to a directory name. | 342 * of the file name. Append a (back)slash to a directory name. |
345 * When 'shellslash' set do it the other way around. | 343 * When 'shellslash' set do it the other way around. |
346 * Return OK or FAIL. | 344 * Return OK or FAIL. |
347 */ | 345 */ |
348 /*ARGSUSED*/ | |
349 int | 346 int |
350 mch_FullName( | 347 mch_FullName( |
351 char_u *fname, | 348 char_u *fname, |
352 char_u *buf, | 349 char_u *buf, |
353 int len, | 350 int len, |
354 int force) | 351 int force UNUSED) |
355 { | 352 { |
356 int nResult = FAIL; | 353 int nResult = FAIL; |
357 | 354 |
358 #ifdef __BORLANDC__ | 355 #ifdef __BORLANDC__ |
359 if (*fname == NUL) /* Borland behaves badly here - make it consistent */ | 356 if (*fname == NUL) /* Borland behaves badly here - make it consistent */ |
634 #endif | 631 #endif |
635 return stat_symlink_aware((char *)buf, stp); | 632 return stat_symlink_aware((char *)buf, stp); |
636 } | 633 } |
637 | 634 |
638 #if defined(FEAT_GUI_MSWIN) || defined(PROTO) | 635 #if defined(FEAT_GUI_MSWIN) || defined(PROTO) |
639 /*ARGSUSED*/ | |
640 void | 636 void |
641 mch_settmode(int tmode) | 637 mch_settmode(int tmode UNUSED) |
642 { | 638 { |
643 /* nothing to do */ | 639 /* nothing to do */ |
644 } | 640 } |
645 | 641 |
646 int | 642 int |
815 | 811 |
816 | 812 |
817 /* | 813 /* |
818 * set screen mode, always fails. | 814 * set screen mode, always fails. |
819 */ | 815 */ |
820 /*ARGSUSED*/ | |
821 int | 816 int |
822 mch_screenmode( | 817 mch_screenmode(char_u *arg UNUSED) |
823 char_u *arg) | |
824 { | 818 { |
825 EMSG(_(e_screenmode)); | 819 EMSG(_(e_screenmode)); |
826 return FAIL; | 820 return FAIL; |
827 } | 821 } |
828 | 822 |
994 #endif | 988 #endif |
995 | 989 |
996 /* | 990 /* |
997 * Debugging helper: expose the MCH_WRITE_DUMP stuff to other modules | 991 * Debugging helper: expose the MCH_WRITE_DUMP stuff to other modules |
998 */ | 992 */ |
999 /*ARGSUSED*/ | |
1000 void | 993 void |
1001 DumpPutS( | 994 DumpPutS(const char *psz UNUSED) |
1002 const char *psz) | |
1003 { | 995 { |
1004 # ifdef MCH_WRITE_DUMP | 996 # ifdef MCH_WRITE_DUMP |
1005 if (fdDump) | 997 if (fdDump) |
1006 { | 998 { |
1007 fputs(psz, fdDump); | 999 fputs(psz, fdDump); |
1171 # define PDP_RETVAL BOOL | 1163 # define PDP_RETVAL BOOL |
1172 #else | 1164 #else |
1173 # define PDP_RETVAL INT_PTR | 1165 # define PDP_RETVAL INT_PTR |
1174 #endif | 1166 #endif |
1175 | 1167 |
1176 /*ARGSUSED*/ | |
1177 static PDP_RETVAL CALLBACK | 1168 static PDP_RETVAL CALLBACK |
1178 PrintDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) | 1169 PrintDlgProc( |
1170 HWND hDlg, | |
1171 UINT message, | |
1172 WPARAM wParam UNUSED, | |
1173 LPARAM lParam UNUSED) | |
1179 { | 1174 { |
1180 #ifdef FEAT_GETTEXT | 1175 #ifdef FEAT_GETTEXT |
1181 NONCLIENTMETRICS nm; | 1176 NONCLIENTMETRICS nm; |
1182 static HFONT hfont; | 1177 static HFONT hfont; |
1183 #endif | 1178 #endif |
1234 return TRUE; | 1229 return TRUE; |
1235 } | 1230 } |
1236 return FALSE; | 1231 return FALSE; |
1237 } | 1232 } |
1238 | 1233 |
1239 /*ARGSUSED*/ | |
1240 static BOOL CALLBACK | 1234 static BOOL CALLBACK |
1241 AbortProc(HDC hdcPrn, int iCode) | 1235 AbortProc(HDC hdcPrn UNUSED, int iCode UNUSED) |
1242 { | 1236 { |
1243 MSG msg; | 1237 MSG msg; |
1244 | 1238 |
1245 while (!*bUserAbort && pPeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) | 1239 while (!*bUserAbort && pPeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) |
1246 { | 1240 { |
1681 #endif | 1675 #endif |
1682 | 1676 |
1683 return (ret > 0); | 1677 return (ret > 0); |
1684 } | 1678 } |
1685 | 1679 |
1686 /*ARGSUSED*/ | |
1687 void | 1680 void |
1688 mch_print_end(prt_settings_T *psettings) | 1681 mch_print_end(prt_settings_T *psettings UNUSED) |
1689 { | 1682 { |
1690 EndDoc(prt_dlg.hDC); | 1683 EndDoc(prt_dlg.hDC); |
1691 if (!*bUserAbort) | 1684 if (!*bUserAbort) |
1692 SendMessage(hDlgPrint, WM_COMMAND, 0, 0); | 1685 SendMessage(hDlgPrint, WM_COMMAND, 0, 0); |
1693 } | 1686 } |
2762 | 2755 |
2763 *end = str; | 2756 *end = str; |
2764 return pixels; | 2757 return pixels; |
2765 } | 2758 } |
2766 | 2759 |
2767 /*ARGSUSED*/ | |
2768 static int CALLBACK | 2760 static int CALLBACK |
2769 font_enumproc( | 2761 font_enumproc( |
2770 ENUMLOGFONT *elf, | 2762 ENUMLOGFONT *elf, |
2771 NEWTEXTMETRIC *ntm, | 2763 NEWTEXTMETRIC *ntm UNUSED, |
2772 int type, | 2764 int type UNUSED, |
2773 LPARAM lparam) | 2765 LPARAM lparam) |
2774 { | 2766 { |
2775 /* Return value: | 2767 /* Return value: |
2776 * 0 = terminate now (monospace & ANSI) | 2768 * 0 = terminate now (monospace & ANSI) |
2777 * 1 = continue, still no luck... | 2769 * 1 = continue, still no luck... |