0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2016-01-15 21:23:22 +01:00
parent 345efa013d
commit b7604cc19f
5 changed files with 21 additions and 55 deletions

View File

@@ -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. */