diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-15 21:23:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-15 21:23:22 +0100 |
commit | b7604cc19fa1db6a8182546bf662aa13d4574d7a (patch) | |
tree | ffe7fbd91b4a41762befb992d16751da60676622 /src/vim.h | |
parent | 345efa013dc6d1754ba06e5596a26c48c9935937 (diff) | |
download | vim-b7604cc19fa1db6a8182546bf662aa13d4574d7a.zip |
patch 7.4.1098
Problem: Still using old style C function declarations.
Solution: Always define __ARGS() to include types. Turn a few functions
into ANSI style to find out if this causes problems for anyone.
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -255,26 +255,18 @@ */ #ifdef AZTEC_C # include <functions.h> -# define __ARGS(x) x #endif #ifdef SASC # include <clib/exec_protos.h> -# define __ARGS(x) x #endif #ifdef _DCC # include <clib/exec_protos.h> -# define __ARGS(x) x -#endif - -#ifdef __TURBOC__ -# define __ARGS(x) x #endif #ifdef __BEOS__ # include "os_beos.h" -# define __ARGS(x) x #endif #if (defined(UNIX) || defined(__EMX__) || defined(VMS)) \ @@ -282,16 +274,8 @@ # include "os_unix.h" /* bring lots of system header files */ #endif -#if defined(MACOS) && (defined(__MRC__) || defined(__SC__)) - /* Apple's Compilers support prototypes */ -# define __ARGS(x) x -#endif #ifndef __ARGS -# if defined(__STDC__) || defined(__GNUC__) || defined(WIN3264) -# define __ARGS(x) x -# else -# define __ARGS(x) () -# endif +# define __ARGS(x) x #endif /* __ARGS and __PARMS are the same thing. */ |