Mercurial > vim
comparison src/os_win32.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 | c96534dd2b2f |
children | c9da7f9137af |
comparison
equal
deleted
inserted
replaced
10782:9b0e9cdb2aac | 10783:04eb70c77cf4 |
---|---|
618 dyn_libintl_bind_textdomain_codeset = null_libintl_bind_textdomain_codeset; | 618 dyn_libintl_bind_textdomain_codeset = null_libintl_bind_textdomain_codeset; |
619 dyn_libintl_putenv = null_libintl_putenv; | 619 dyn_libintl_putenv = null_libintl_putenv; |
620 dyn_libintl_wputenv = null_libintl_wputenv; | 620 dyn_libintl_wputenv = null_libintl_wputenv; |
621 } | 621 } |
622 | 622 |
623 /*ARGSUSED*/ | |
624 static char * | 623 static char * |
625 null_libintl_gettext(const char *msgid) | 624 null_libintl_gettext(const char *msgid) |
626 { | 625 { |
627 return (char*)msgid; | 626 return (char*)msgid; |
628 } | 627 } |
629 | 628 |
630 /*ARGSUSED*/ | |
631 static char * | 629 static char * |
632 null_libintl_ngettext( | 630 null_libintl_ngettext( |
633 const char *msgid, | 631 const char *msgid, |
634 const char *msgid_plural, | 632 const char *msgid_plural, |
635 unsigned long n) | 633 unsigned long n) |
636 { | 634 { |
637 return (char *)(n == 1 ? msgid : msgid_plural); | 635 return (char *)(n == 1 ? msgid : msgid_plural); |
638 } | 636 } |
639 | 637 |
640 /*ARGSUSED*/ | |
641 static char * | 638 static char * |
642 null_libintl_bindtextdomain(const char *domainname, const char *dirname) | 639 null_libintl_bindtextdomain( |
640 const char *domainname UNUSED, | |
641 const char *dirname UNUSED) | |
643 { | 642 { |
644 return NULL; | 643 return NULL; |
645 } | 644 } |
646 | 645 |
647 /*ARGSUSED*/ | |
648 static char * | 646 static char * |
649 null_libintl_bind_textdomain_codeset(const char *domainname, | 647 null_libintl_bind_textdomain_codeset( |
650 const char *codeset) | 648 const char *domainname UNUSED, |
649 const char *codeset UNUSED) | |
651 { | 650 { |
652 return NULL; | 651 return NULL; |
653 } | 652 } |
654 | 653 |
655 /*ARGSUSED*/ | |
656 static char * | 654 static char * |
657 null_libintl_textdomain(const char *domainname) | 655 null_libintl_textdomain(const char *domainname UNUSED) |
658 { | 656 { |
659 return NULL; | 657 return NULL; |
660 } | 658 } |
661 | 659 |
662 /*ARGSUSED*/ | |
663 int | 660 int |
664 null_libintl_putenv(const char *envstring) | 661 null_libintl_putenv(const char *envstring UNUSED) |
665 { | 662 { |
666 return 0; | 663 return 0; |
667 } | 664 } |
668 | 665 |
669 /*ARGSUSED*/ | |
670 int | 666 int |
671 null_libintl_wputenv(const wchar_t *envstring) | 667 null_libintl_wputenv(const wchar_t *envstring UNUSED) |
672 { | 668 { |
673 return 0; | 669 return 0; |
674 } | 670 } |
675 | 671 |
676 #endif /* DYNAMIC_GETTEXT */ | 672 #endif /* DYNAMIC_GETTEXT */ |
1058 | 1054 |
1059 /* | 1055 /* |
1060 * For the GUI the mouse handling is in gui_w32.c. | 1056 * For the GUI the mouse handling is in gui_w32.c. |
1061 */ | 1057 */ |
1062 # ifdef FEAT_GUI_W32 | 1058 # ifdef FEAT_GUI_W32 |
1063 /*ARGSUSED*/ | |
1064 void | 1059 void |
1065 mch_setmouse(int on) | 1060 mch_setmouse(int on UNUSED) |
1066 { | 1061 { |
1067 } | 1062 } |
1068 # else | 1063 # else |
1069 static int g_fMouseAvail = FALSE; /* mouse present */ | 1064 static int g_fMouseAvail = FALSE; /* mouse present */ |
1070 static int g_fMouseActive = FALSE; /* mouse enabled */ | 1065 static int g_fMouseActive = FALSE; /* mouse enabled */ |
1656 * If time == 0, do not wait for characters. | 1651 * If time == 0, do not wait for characters. |
1657 * If time == n, wait a short time for characters. | 1652 * If time == n, wait a short time for characters. |
1658 * If time == -1, wait forever for characters. | 1653 * If time == -1, wait forever for characters. |
1659 * Returns the number of characters read into buf. | 1654 * Returns the number of characters read into buf. |
1660 */ | 1655 */ |
1661 /*ARGSUSED*/ | |
1662 int | 1656 int |
1663 mch_inchar( | 1657 mch_inchar( |
1664 char_u *buf, | 1658 char_u *buf UNUSED, |
1665 int maxlen, | 1659 int maxlen UNUSED, |
1666 long time, | 1660 long time UNUSED, |
1667 int tb_change_cnt) | 1661 int tb_change_cnt UNUSED) |
1668 { | 1662 { |
1669 #ifndef FEAT_GUI_W32 /* this isn't used for the GUI */ | 1663 #ifndef FEAT_GUI_W32 /* this isn't used for the GUI */ |
1670 | 1664 |
1671 int len; | 1665 int len; |
1672 int c; | 1666 int c; |
2590 #endif /* !FEAT_GUI_W32 */ | 2584 #endif /* !FEAT_GUI_W32 */ |
2591 | 2585 |
2592 /* | 2586 /* |
2593 * Do we have an interactive window? | 2587 * Do we have an interactive window? |
2594 */ | 2588 */ |
2595 /*ARGSUSED*/ | |
2596 int | 2589 int |
2597 mch_check_win( | 2590 mch_check_win( |
2598 int argc, | 2591 int argc UNUSED, |
2599 char **argv) | 2592 char **argv UNUSED) |
2600 { | 2593 { |
2601 get_exe_name(); | 2594 get_exe_name(); |
2602 | 2595 |
2603 #ifdef FEAT_GUI_W32 | 2596 #ifdef FEAT_GUI_W32 |
2604 return OK; /* GUI always has a tty */ | 2597 return OK; /* GUI always has a tty */ |
5346 } | 5339 } |
5347 #endif /* FEAT_GUI_W32 */ | 5340 #endif /* FEAT_GUI_W32 */ |
5348 | 5341 |
5349 | 5342 |
5350 #ifdef FEAT_GUI_W32 | 5343 #ifdef FEAT_GUI_W32 |
5351 /*ARGSUSED*/ | |
5352 void | 5344 void |
5353 mch_write( | 5345 mch_write( |
5354 char_u *s, | 5346 char_u *s UNUSED, |
5355 int len) | 5347 int len UNUSED) |
5356 { | 5348 { |
5357 /* never used */ | 5349 /* never used */ |
5358 } | 5350 } |
5359 | 5351 |
5360 #else | 5352 #else |
6048 | 6040 |
6049 | 6041 |
6050 /* | 6042 /* |
6051 * Delay for "msec" milliseconds. | 6043 * Delay for "msec" milliseconds. |
6052 */ | 6044 */ |
6053 /*ARGSUSED*/ | |
6054 void | 6045 void |
6055 mch_delay( | 6046 mch_delay( |
6056 long msec, | 6047 long msec, |
6057 int ignoreinput) | 6048 int ignoreinput UNUSED) |
6058 { | 6049 { |
6059 #ifdef FEAT_GUI_W32 | 6050 #ifdef FEAT_GUI_W32 |
6060 Sleep((int)msec); /* never wait for input */ | 6051 Sleep((int)msec); /* never wait for input */ |
6061 #else /* Console */ | 6052 #else /* Console */ |
6062 if (ignoreinput) | 6053 if (ignoreinput) |
6141 #define WINNT_RESERVE_BYTES (256*1024*1024) | 6132 #define WINNT_RESERVE_BYTES (256*1024*1024) |
6142 | 6133 |
6143 /* | 6134 /* |
6144 * How much main memory in KiB that can be used by VIM. | 6135 * How much main memory in KiB that can be used by VIM. |
6145 */ | 6136 */ |
6146 /*ARGSUSED*/ | |
6147 long_u | 6137 long_u |
6148 mch_total_mem(int special) | 6138 mch_total_mem(int special UNUSED) |
6149 { | 6139 { |
6150 MEMORYSTATUSEX ms; | 6140 MEMORYSTATUSEX ms; |
6151 | 6141 |
6152 PlatformId(); | 6142 PlatformId(); |
6153 /* Need to use GlobalMemoryStatusEx() when there is more memory than | 6143 /* Need to use GlobalMemoryStatusEx() when there is more memory than |