summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-16 17:23:31 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-16 17:23:31 +0100
commit8820b48654b62472821d9b155fe03ab7ac13a05c (patch)
tree7783a4068aee8368661722d5171d33a4d410d6bb /src/vim.h
parent40ebc0afda8d8e478d2090133ed6a3cd3d8da3ec (diff)
downloadvim-git-8820b48654b62472821d9b155fe03ab7ac13a05c.tar.gz
patch 8.0.0466: still macros that should be all-capsv8.0.0466
Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/vim.h b/src/vim.h
index faafc3fe2..dd571df37 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1761,8 +1761,8 @@ void *vim_memset(void *, int, size_t);
/*
* Enums need a typecast to be used as array index (for Ultrix).
*/
-#define hl_attr(n) highlight_attr[(int)(n)]
-#define term_str(n) term_strings[(int)(n)]
+#define HL_ATTR(n) highlight_attr[(int)(n)]
+#define TERM_STR(n) term_strings[(int)(n)]
/*
* EXTERN is only defined in main.c. That's where global variables are
@@ -2076,13 +2076,6 @@ typedef struct VimClipboard
typedef int VimClipboard; /* This is required for the prototypes. */
#endif
-#ifdef __BORLANDC__
-/* work around a bug in the Borland 'stat' function: */
-# include <io.h> /* for access() */
-
-# define stat(a,b) (access(a,0) ? -1 : stat(a,b))
-#endif
-
/* Use 64-bit stat structure if available. */
#if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__)
# define HAVE_STAT64
@@ -2140,7 +2133,7 @@ typedef enum {
#include "globals.h" /* global variables and messages */
#ifndef FEAT_VIRTUALEDIT
-# define getvvcol(w, p, s, c, e) getvcol(w, p, s, c, e)
+# define getvvcol(w, p, s, c, e) getvcol((w), (p), (s), (c), (e))
# define virtual_active() FALSE
# define virtual_op FALSE
#endif