From b7604cc19fa1db6a8182546bf662aa13d4574d7a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 15 Jan 2016 21:23:22 +0100 Subject: 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. --- src/vim.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/vim.h') diff --git a/src/vim.h b/src/vim.h index 81d092911..a8a6eadfe 100644 --- a/src/vim.h +++ b/src/vim.h @@ -255,26 +255,18 @@ */ #ifdef AZTEC_C # include -# define __ARGS(x) x #endif #ifdef SASC # include -# define __ARGS(x) x #endif #ifdef _DCC # include -# 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. */ -- cgit v1.2.3