diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-16 20:54:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-16 20:54:51 +0200 |
commit | 4033c55eca575777718c0701e26635a0cc47d907 (patch) | |
tree | 8dc460ad495106198a9119b52f6505033f7a75b3 /src/vim.h | |
parent | e738a1a033cd31cd2568ba99a9e2dca1e65b45ea (diff) | |
download | vim-git-4033c55eca575777718c0701e26635a0cc47d907.tar.gz |
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 24 |
1 files changed, 6 insertions, 18 deletions
@@ -859,24 +859,12 @@ extern int (*dyn_libintl_putenv)(const char *envstring); #define FINDFILE_DIR 1 /* only directories */ #define FINDFILE_BOTH 2 /* files and directories */ -#ifdef FEAT_WINDOWS -# define W_WINCOL(wp) (wp->w_wincol) -# define W_WIDTH(wp) (wp->w_width) -# define W_ENDCOL(wp) (wp->w_wincol + wp->w_width) -# define W_VSEP_WIDTH(wp) (wp->w_vsep_width) -#else -# define W_WINCOL(wp) 0 -# define W_WIDTH(wp) Columns -# define W_ENDCOL(wp) Columns -# define W_VSEP_WIDTH(wp) 0 -#endif -#ifdef FEAT_WINDOWS -# define W_STATUS_HEIGHT(wp) (wp->w_status_height) -# define W_WINROW(wp) (wp->w_winrow) -#else -# define W_STATUS_HEIGHT(wp) 0 -# define W_WINROW(wp) 0 -#endif +#define W_WINCOL(wp) (wp->w_wincol) +#define W_WIDTH(wp) (wp->w_width) +#define W_ENDCOL(wp) (wp->w_wincol + wp->w_width) +#define W_VSEP_WIDTH(wp) (wp->w_vsep_width) +#define W_STATUS_HEIGHT(wp) (wp->w_status_height) +#define W_WINROW(wp) (wp->w_winrow) #ifdef NO_EXPANDPATH # define gen_expand_wildcards mch_expand_wildcards |