comparison src/vim.h @ 7598:1a528724f9d6 v7.4.1098

commit https://github.com/vim/vim/commit/b7604cc19fa1db6a8182546bf662aa13d4574d7a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 15 21:23:22 2016 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Jan 2016 21:30:05 +0100
parents b872724c37db
children 2a280b8e7040
comparison
equal deleted inserted replaced
7597:3012eaddb6b2 7598:1a528724f9d6
253 /* 253 /*
254 * Find out if function definitions should include argument types 254 * Find out if function definitions should include argument types
255 */ 255 */
256 #ifdef AZTEC_C 256 #ifdef AZTEC_C
257 # include <functions.h> 257 # include <functions.h>
258 # define __ARGS(x) x
259 #endif 258 #endif
260 259
261 #ifdef SASC 260 #ifdef SASC
262 # include <clib/exec_protos.h> 261 # include <clib/exec_protos.h>
263 # define __ARGS(x) x
264 #endif 262 #endif
265 263
266 #ifdef _DCC 264 #ifdef _DCC
267 # include <clib/exec_protos.h> 265 # include <clib/exec_protos.h>
268 # define __ARGS(x) x
269 #endif
270
271 #ifdef __TURBOC__
272 # define __ARGS(x) x
273 #endif 266 #endif
274 267
275 #ifdef __BEOS__ 268 #ifdef __BEOS__
276 # include "os_beos.h" 269 # include "os_beos.h"
277 # define __ARGS(x) x
278 #endif 270 #endif
279 271
280 #if (defined(UNIX) || defined(__EMX__) || defined(VMS)) \ 272 #if (defined(UNIX) || defined(__EMX__) || defined(VMS)) \
281 && (!defined(MACOS_X) || defined(HAVE_CONFIG_H)) 273 && (!defined(MACOS_X) || defined(HAVE_CONFIG_H))
282 # include "os_unix.h" /* bring lots of system header files */ 274 # include "os_unix.h" /* bring lots of system header files */
283 #endif 275 #endif
284 276
285 #if defined(MACOS) && (defined(__MRC__) || defined(__SC__)) 277 #ifndef __ARGS
286 /* Apple's Compilers support prototypes */
287 # define __ARGS(x) x 278 # define __ARGS(x) x
288 #endif
289 #ifndef __ARGS
290 # if defined(__STDC__) || defined(__GNUC__) || defined(WIN3264)
291 # define __ARGS(x) x
292 # else
293 # define __ARGS(x) ()
294 # endif
295 #endif 279 #endif
296 280
297 /* __ARGS and __PARMS are the same thing. */ 281 /* __ARGS and __PARMS are the same thing. */
298 #ifndef __PARMS 282 #ifndef __PARMS
299 # define __PARMS(x) __ARGS(x) 283 # define __PARMS(x) __ARGS(x)