1
0
forked from aniani/vim

patch 8.0.1564: too many #ifdefs

Problem:    Too many #ifdefs.
Solution:   Graduate the +autocmd feature. Takes away 450 #ifdefs and
            increases code size of tiny Vim by only 40 Kbyte.
This commit is contained in:
Bram Moolenaar
2018-03-04 18:08:14 +01:00
parent 3f54fd319f
commit f2bd8ef2b4
48 changed files with 326 additions and 1157 deletions

View File

@@ -439,18 +439,11 @@
# define FEAT_MODIFY_FNAME
#endif
/*
* +autocmd ":autocmd" command
*/
#ifdef FEAT_NORMAL
# define FEAT_AUTOCMD
#endif
/*
* +diff Displaying diffs in a nice way.
* Requires +windows and +autocmd.
*/
#if defined(FEAT_NORMAL) && defined(FEAT_AUTOCMD)
#if defined(FEAT_NORMAL)
# define FEAT_DIFF
#endif