Mercurial > vim
diff src/feature.h @ 12477:68d7bc045dbe v8.0.1118
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 16 20:54:51 2017 +0200
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2017 21:00:06 +0200 |
parents | 3ed8bcc9a013 |
children | 351cf7c67bbe |
line wrap: on
line diff
--- a/src/feature.h +++ b/src/feature.h @@ -94,13 +94,11 @@ */ /* + * These features used to be optional but are now always enabled. * +windows Multiple windows. Without this there is no help * window and no status lines. * +vertsplit Vertically split windows. */ -#ifdef FEAT_SMALL -# define FEAT_WINDOWS -#endif /* * +listcmds Vim commands for the buffer list and the argument @@ -134,8 +132,8 @@ # define FEAT_JUMPLIST #endif -/* the cmdline-window requires FEAT_WINDOWS and FEAT_CMDHIST */ -#if defined(FEAT_WINDOWS) && defined(FEAT_CMDHIST) +/* the cmdline-window requires FEAT_CMDHIST */ +#if defined(FEAT_CMDHIST) # define FEAT_CMDWIN #endif @@ -452,7 +450,7 @@ * +diff Displaying diffs in a nice way. * Requires +windows and +autocmd. */ -#if defined(FEAT_NORMAL) && defined(FEAT_WINDOWS) && defined(FEAT_AUTOCMD) +#if defined(FEAT_NORMAL) && defined(FEAT_AUTOCMD) # define FEAT_DIFF #endif @@ -490,7 +488,7 @@ /* * +wildmenu 'wildmenu' option */ -#if defined(FEAT_NORMAL) && defined(FEAT_WINDOWS) +#if defined(FEAT_NORMAL) # define FEAT_WILDMENU #endif @@ -595,7 +593,7 @@ * +mksession ":mksession" command. * Requires +windows and +vertsplit. */ -#if defined(FEAT_NORMAL) && defined(FEAT_WINDOWS) +#if defined(FEAT_NORMAL) # define FEAT_SESSION #endif @@ -706,14 +704,14 @@ /* * +scrollbind synchronization of split windows */ -#if defined(FEAT_NORMAL) && defined(FEAT_WINDOWS) +#if defined(FEAT_NORMAL) # define FEAT_SCROLLBIND #endif /* * +cursorbind synchronization of split windows */ -#if defined(FEAT_NORMAL) && defined(FEAT_WINDOWS) +#if defined(FEAT_NORMAL) # define FEAT_CURSORBIND #endif @@ -754,7 +752,7 @@ /* * GUI tabline */ -#if defined(FEAT_WINDOWS) && defined(FEAT_NORMAL) \ +#if defined(FEAT_NORMAL) \ && (defined(FEAT_GUI_GTK) \ || (defined(FEAT_GUI_MOTIF) && defined(HAVE_XM_NOTEBOOK_H)) \ || defined(FEAT_GUI_MAC) \