mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
Remove __ARGS macro. Close #205
This is a squash of all commits sent to #81. - Remove unused undef of __ARGS. - Fix mch_rename declaration. - Follow changes related to moved & extracted files. - Properly indent function declarations of getchar.h and quickfix.c.
This commit is contained in:

committed by
Thiago de Arruda

parent
2bd6d44403
commit
d9283c4927
14
src/vim.h
14
src/vim.h
@@ -67,14 +67,6 @@ Error: configure did not run properly.Check auto/config.log.
|
||||
|
||||
#include "os_unix_defs.h" /* bring lots of system header files */
|
||||
|
||||
#ifndef __ARGS
|
||||
# if defined(__STDC__) || defined(__GNUC__) || defined(WIN3264)
|
||||
# define __ARGS(x) x
|
||||
# else
|
||||
# define __ARGS(x) ()
|
||||
# endif
|
||||
#endif
|
||||
|
||||
# ifdef HAVE_LOCALE_H
|
||||
# include <locale.h>
|
||||
# endif
|
||||
@@ -1174,7 +1166,7 @@ typedef void *vim_acl_T; /* dummy to pass an ACL to a function */
|
||||
* Include a prototype for mch_memmove(), it may not be in alloc.pro.
|
||||
*/
|
||||
#ifdef VIM_MEMMOVE
|
||||
void mch_memmove __ARGS((void *, void *, size_t));
|
||||
void mch_memmove(void *, void *, size_t);
|
||||
#else
|
||||
# ifndef mch_memmove
|
||||
# define mch_memmove(to, from, len) memmove(to, from, len)
|
||||
@@ -1194,7 +1186,7 @@ void mch_memmove __ARGS((void *, void *, size_t));
|
||||
#ifdef HAVE_MEMSET
|
||||
# define vim_memset(ptr, c, size) memset((ptr), (c), (size))
|
||||
#else
|
||||
void *vim_memset __ARGS((void *, int, size_t));
|
||||
void *vim_memset(void *, int, size_t);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MEMCMP
|
||||
@@ -1203,7 +1195,7 @@ void *vim_memset __ARGS((void *, int, size_t));
|
||||
# ifdef HAVE_BCMP
|
||||
# define vim_memcmp(p1, p2, len) bcmp((p1), (p2), (len))
|
||||
# else
|
||||
int vim_memcmp __ARGS((void *, void *, size_t));
|
||||
int vim_memcmp(void *, void *, size_t);
|
||||
# define VIM_MEMCMP
|
||||
# endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user