comparison src/vim.h @ 11158:501f46f7644c v8.0.0466

patch 8.0.0466: still macros that should be all-caps commit https://github.com/vim/vim/commit/8820b48654b62472821d9b155fe03ab7ac13a05c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 16 17:23:31 2017 +0100 patch 8.0.0466: still macros that should be all-caps Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Mar 2017 17:30:06 +0100
parents f4ea50924c6d
children 71311d899b42
comparison
equal deleted inserted replaced
11157:35a1705f4d02 11158:501f46f7644c
1759 #endif 1759 #endif
1760 1760
1761 /* 1761 /*
1762 * Enums need a typecast to be used as array index (for Ultrix). 1762 * Enums need a typecast to be used as array index (for Ultrix).
1763 */ 1763 */
1764 #define hl_attr(n) highlight_attr[(int)(n)] 1764 #define HL_ATTR(n) highlight_attr[(int)(n)]
1765 #define term_str(n) term_strings[(int)(n)] 1765 #define TERM_STR(n) term_strings[(int)(n)]
1766 1766
1767 /* 1767 /*
1768 * EXTERN is only defined in main.c. That's where global variables are 1768 * EXTERN is only defined in main.c. That's where global variables are
1769 * actually defined and initialized. 1769 * actually defined and initialized.
1770 */ 1770 */
2074 } VimClipboard; 2074 } VimClipboard;
2075 #else 2075 #else
2076 typedef int VimClipboard; /* This is required for the prototypes. */ 2076 typedef int VimClipboard; /* This is required for the prototypes. */
2077 #endif 2077 #endif
2078 2078
2079 #ifdef __BORLANDC__
2080 /* work around a bug in the Borland 'stat' function: */
2081 # include <io.h> /* for access() */
2082
2083 # define stat(a,b) (access(a,0) ? -1 : stat(a,b))
2084 #endif
2085
2086 /* Use 64-bit stat structure if available. */ 2079 /* Use 64-bit stat structure if available. */
2087 #if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__) 2080 #if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__)
2088 # define HAVE_STAT64 2081 # define HAVE_STAT64
2089 typedef struct _stat64 stat_T; 2082 typedef struct _stat64 stat_T;
2090 #else 2083 #else
2138 2131
2139 2132
2140 #include "globals.h" /* global variables and messages */ 2133 #include "globals.h" /* global variables and messages */
2141 2134
2142 #ifndef FEAT_VIRTUALEDIT 2135 #ifndef FEAT_VIRTUALEDIT
2143 # define getvvcol(w, p, s, c, e) getvcol(w, p, s, c, e) 2136 # define getvvcol(w, p, s, c, e) getvcol((w), (p), (s), (c), (e))
2144 # define virtual_active() FALSE 2137 # define virtual_active() FALSE
2145 # define virtual_op FALSE 2138 # define virtual_op FALSE
2146 #endif 2139 #endif
2147 2140
2148 /* 2141 /*