Mercurial > vim
comparison src/vim.h @ 7807:1a5d34492798 v7.4.1200
commit https://github.com/vim/vim/commit/d99df423c559d85c17779b3685426c489554908c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 29 23:20:40 2016 +0100
patch 7.4.1200
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Jan 2016 23:30:06 +0100 |
parents | 0d46cea25641 |
children | 744c66477ba9 |
comparison
equal
deleted
inserted
replaced
7806:eb2af74e899a | 7807:1a5d34492798 |
---|---|
270 #endif | 270 #endif |
271 | 271 |
272 #if (defined(UNIX) || defined(__EMX__) || defined(VMS)) \ | 272 #if (defined(UNIX) || defined(__EMX__) || defined(VMS)) \ |
273 && (!defined(MACOS_X) || defined(HAVE_CONFIG_H)) | 273 && (!defined(MACOS_X) || defined(HAVE_CONFIG_H)) |
274 # include "os_unix.h" /* bring lots of system header files */ | 274 # include "os_unix.h" /* bring lots of system header files */ |
275 #endif | |
276 | |
277 #ifndef __ARGS | |
278 # define __ARGS(x) x | |
279 #endif | |
280 | |
281 /* __ARGS and __PARMS are the same thing. */ | |
282 #ifndef __PARMS | |
283 # define __PARMS(x) __ARGS(x) | |
284 #endif | 275 #endif |
285 | 276 |
286 /* Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter | 277 /* Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter |
287 * can be used to check for mistakes. */ | 278 * can be used to check for mistakes. */ |
288 #ifdef HAVE_ATTRIBUTE_UNUSED | 279 #ifdef HAVE_ATTRIBUTE_UNUSED |
1639 | 1630 |
1640 /* | 1631 /* |
1641 * Include a prototype for mch_memmove(), it may not be in alloc.pro. | 1632 * Include a prototype for mch_memmove(), it may not be in alloc.pro. |
1642 */ | 1633 */ |
1643 #ifdef VIM_MEMMOVE | 1634 #ifdef VIM_MEMMOVE |
1644 void mch_memmove __ARGS((void *, void *, size_t)); | 1635 void mch_memmove(void *, void *, size_t); |
1645 #else | 1636 #else |
1646 # ifndef mch_memmove | 1637 # ifndef mch_memmove |
1647 # define mch_memmove(to, from, len) memmove(to, from, len) | 1638 # define mch_memmove(to, from, len) memmove(to, from, len) |
1648 # endif | 1639 # endif |
1649 #endif | 1640 #endif |
1658 #define fnamencmp(x, y, n) vim_fnamencmp((char_u *)(x), (char_u *)(y), (size_t)(n)) | 1649 #define fnamencmp(x, y, n) vim_fnamencmp((char_u *)(x), (char_u *)(y), (size_t)(n)) |
1659 | 1650 |
1660 #ifdef HAVE_MEMSET | 1651 #ifdef HAVE_MEMSET |
1661 # define vim_memset(ptr, c, size) memset((ptr), (c), (size)) | 1652 # define vim_memset(ptr, c, size) memset((ptr), (c), (size)) |
1662 #else | 1653 #else |
1663 void *vim_memset __ARGS((void *, int, size_t)); | 1654 void *vim_memset(void *, int, size_t); |
1664 #endif | 1655 #endif |
1665 | 1656 |
1666 #ifdef HAVE_MEMCMP | 1657 #ifdef HAVE_MEMCMP |
1667 # define vim_memcmp(p1, p2, len) memcmp((p1), (p2), (len)) | 1658 # define vim_memcmp(p1, p2, len) memcmp((p1), (p2), (len)) |
1668 #else | 1659 #else |
1669 # ifdef HAVE_BCMP | 1660 # ifdef HAVE_BCMP |
1670 # define vim_memcmp(p1, p2, len) bcmp((p1), (p2), (len)) | 1661 # define vim_memcmp(p1, p2, len) bcmp((p1), (p2), (len)) |
1671 # else | 1662 # else |
1672 int vim_memcmp __ARGS((void *, void *, size_t)); | 1663 int vim_memcmp(void *, void *, size_t); |
1673 # define VIM_MEMCMP | 1664 # define VIM_MEMCMP |
1674 # endif | 1665 # endif |
1675 #endif | 1666 #endif |
1676 | 1667 |
1677 #if defined(UNIX) || defined(FEAT_GUI) || defined(VMS) \ | 1668 #if defined(UNIX) || defined(FEAT_GUI) || defined(VMS) \ |