Mercurial > vim
comparison src/feature.h @ 30645:101f08b49ed3 v9.0.0657
patch 9.0.0657: too many #ifdefs
Commit: https://github.com/vim/vim/commit/7904fa420eb577274c4c3711295240100167d495
Author: Martin Tournoij <martin@arp242.net>
Date: Tue Oct 4 16:28:45 2022 +0100
patch 9.0.0657: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate the +cmdwin feature. Now the tiny and small builds are
equal, drop the small build. (Martin Tournoij, closes #11268)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Oct 2022 17:30:06 +0200 |
parents | 029c59bf78f1 |
children | 71137f73c94d |
comparison
equal
deleted
inserted
replaced
30644:0c102a723b9a | 30645:101f08b49ed3 |
---|---|
29 | 29 |
30 /* | 30 /* |
31 * Basic choices: | 31 * Basic choices: |
32 * ============== | 32 * ============== |
33 * | 33 * |
34 * +tiny almost no features enabled, not even multiple windows | 34 * +tiny no optional features enabled, not even +eval |
35 * +small as tiny plus cmdline window | 35 * +normal a default selection of features enabled |
36 * +normal A default selection of features enabled | 36 * +big many features enabled, except "expensive" ones |
37 * +big many features enabled, as rich as possible. | |
38 * +huge all possible features enabled. | 37 * +huge all possible features enabled. |
39 * | 38 * |
40 * When +small is used, +tiny is also included. +normal implies +small, etc. | 39 * When +normal is used, +tiny is also included. +big implies +normal, etc. |
41 */ | 40 */ |
41 | |
42 /* | |
43 * +small is now an alias for +tiny | |
44 */ | |
45 #if defined(FEAT_SMALL) | |
46 # undef FEAT_SMALL | |
47 # if !defined(FEAT_TINY) | |
48 # define FEAT_TINY | |
49 # endif | |
50 #endif | |
42 | 51 |
43 /* | 52 /* |
44 * Uncomment one of these to override the default. For unix use a configure | 53 * Uncomment one of these to override the default. For unix use a configure |
45 * argument, see Makefile. | 54 * argument, see Makefile. |
46 */ | 55 */ |
47 #if !defined(FEAT_TINY) && !defined(FEAT_SMALL) && !defined(FEAT_NORMAL) \ | 56 #if !defined(FEAT_TINY) && !defined(FEAT_NORMAL) \ |
48 && !defined(FEAT_BIG) && !defined(FEAT_HUGE) | 57 && !defined(FEAT_BIG) && !defined(FEAT_HUGE) |
49 // #define FEAT_TINY | 58 // #define FEAT_TINY |
50 // #define FEAT_SMALL | |
51 // #define FEAT_NORMAL | 59 // #define FEAT_NORMAL |
52 // #define FEAT_BIG | 60 // #define FEAT_BIG |
53 // #define FEAT_HUGE | 61 // #define FEAT_HUGE |
54 #endif | 62 #endif |
55 | 63 |
57 * For Unix, Mac and Win32 use +huge by default. These days CPUs are fast and | 65 * For Unix, Mac and Win32 use +huge by default. These days CPUs are fast and |
58 * Memory is cheap. | 66 * Memory is cheap. |
59 * Use +big for older systems: VMS and Amiga. | 67 * Use +big for older systems: VMS and Amiga. |
60 * Otherwise use +normal | 68 * Otherwise use +normal |
61 */ | 69 */ |
62 #if !defined(FEAT_TINY) && !defined(FEAT_SMALL) && !defined(FEAT_NORMAL) \ | 70 #if !defined(FEAT_TINY) && !defined(FEAT_NORMAL) \ |
63 && !defined(FEAT_BIG) && !defined(FEAT_HUGE) | 71 && !defined(FEAT_BIG) && !defined(FEAT_HUGE) |
64 # if defined(UNIX) || defined(MSWIN) || defined(MACOS_X) | 72 # if defined(UNIX) || defined(MSWIN) || defined(MACOS_X) |
65 # define FEAT_HUGE | 73 # define FEAT_HUGE |
66 # else | 74 # else |
67 # if defined(VMS) || defined(AMIGA) | 75 # if defined(VMS) || defined(AMIGA) |
80 #endif | 88 #endif |
81 #ifdef FEAT_BIG | 89 #ifdef FEAT_BIG |
82 # define FEAT_NORMAL | 90 # define FEAT_NORMAL |
83 #endif | 91 #endif |
84 #ifdef FEAT_NORMAL | 92 #ifdef FEAT_NORMAL |
85 # define FEAT_SMALL | |
86 #endif | |
87 #ifdef FEAT_SMALL | |
88 # define FEAT_TINY | 93 # define FEAT_TINY |
89 #endif | 94 #endif |
90 | 95 |
91 /* | 96 /* |
92 * Optional code (see ":help +feature-list") | 97 * Optional code (see ":help +feature-list") |
120 * +path_extra up/downwards searching in 'path' and 'tags'. | 125 * +path_extra up/downwards searching in 'path' and 'tags'. |
121 * +wildignore 'wildignore' and 'backupskip' options | 126 * +wildignore 'wildignore' and 'backupskip' options |
122 * +wildmenu 'wildmenu' option | 127 * +wildmenu 'wildmenu' option |
123 * +builtin_terms all builtin termcap entries included | 128 * +builtin_terms all builtin termcap entries included |
124 * +float Floating point variables. | 129 * +float Floating point variables. |
130 * +cmdwin Command line window. | |
125 * | 131 * |
126 * Obsolete: | 132 * Obsolete: |
127 * +tag_old_static Old style static tags: "file:tag file ..". | 133 * +tag_old_static Old style static tags: "file:tag file ..". |
128 * Support was removed in 8.1.1093. | 134 * Support was removed in 8.1.1093. |
129 * +farsi Farsi (Persian language) Keymap support. | 135 * +farsi Farsi (Persian language) Keymap support. |
134 | 140 |
135 /* | 141 /* |
136 * Message history is fixed at 200 messages. | 142 * Message history is fixed at 200 messages. |
137 */ | 143 */ |
138 #define MAX_MSG_HIST_LEN 200 | 144 #define MAX_MSG_HIST_LEN 200 |
139 | |
140 #if defined(FEAT_SMALL) | |
141 # define FEAT_CMDWIN | |
142 #endif | |
143 | 145 |
144 /* | 146 /* |
145 * +folding Fold lines. | 147 * +folding Fold lines. |
146 */ | 148 */ |
147 #ifdef FEAT_NORMAL | 149 #ifdef FEAT_NORMAL |
913 */ | 915 */ |
914 #if defined(FEAT_CLIPBOARD) && defined(FEAT_GUI_GTK) | 916 #if defined(FEAT_CLIPBOARD) && defined(FEAT_GUI_GTK) |
915 # define FEAT_DND | 917 # define FEAT_DND |
916 #endif | 918 #endif |
917 | 919 |
918 #if defined(FEAT_GUI_MSWIN) && defined(FEAT_SMALL) | 920 #if defined(FEAT_GUI_MSWIN) |
919 # define MSWIN_FIND_REPLACE // include code for find/replace dialog | 921 # define MSWIN_FIND_REPLACE // include code for find/replace dialog |
920 # define MSWIN_FR_BUFSIZE 256 | 922 # define MSWIN_FR_BUFSIZE 256 |
921 #endif | 923 #endif |
922 | 924 |
923 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MOTIF) \ | 925 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MOTIF) \ |