Skip to content

Commit c81dfaa

Browse files
committed
patch 9.0.1621: FILETYPE_FILE is defined to the same value multiple times
Problem: FILETYPE_FILE is defined to the same value multiple times. Same for a few similar macros. Solution: Define FILETYPE_FILE and others in feature.h only
1 parent 19548c6 commit c81dfaa

File tree

6 files changed

+27
-87
lines changed

6 files changed

+27
-87
lines changed

src/feature.h

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -715,19 +715,31 @@
715715

716716
/*
717717
* File names for:
718-
* FILETYPE_FILE switch on file type detection
719-
* FTPLUGIN_FILE switch on loading filetype plugin files
720-
* INDENT_FILE switch on loading indent files
721-
* FTOFF_FILE switch off file type detection
722-
* FTPLUGOF_FILE switch off loading settings files
723-
* INDOFF_FILE switch off loading indent files
724-
*/
725-
// # define FILETYPE_FILE "filetype.vim"
726-
// # define FTPLUGIN_FILE "ftplugin.vim"
727-
// # define INDENT_FILE "indent.vim"
728-
// # define FTOFF_FILE "ftoff.vim"
729-
// # define FTPLUGOF_FILE "ftplugof.vim"
730-
// # define INDOFF_FILE "indoff.vim"
718+
* FILETYPE_FILE used for file type detection
719+
* FTPLUGIN_FILE used for loading filetype plugin files
720+
* INDENT_FILE used for loading indent files
721+
* FTOFF_FILE used for file type detection
722+
* FTPLUGOF_FILE used for loading settings files
723+
* INDOFF_FILE used for loading indent files
724+
*/
725+
#ifndef FILETYPE_FILE
726+
# define FILETYPE_FILE "filetype.vim"
727+
#endif
728+
#ifndef FTPLUGIN_FILE
729+
# define FTPLUGIN_FILE "ftplugin.vim"
730+
#endif
731+
#ifndef INDENT_FILE
732+
# define INDENT_FILE "indent.vim"
733+
#endif
734+
#ifndef FTOFF_FILE
735+
# define FTOFF_FILE "ftoff.vim"
736+
#endif
737+
#ifndef FTPLUGOF_FILE
738+
# define FTPLUGOF_FILE "ftplugof.vim"
739+
#endif
740+
#ifndef INDOFF_FILE
741+
# define INDOFF_FILE "indoff.vim"
742+
#endif
731743

732744
/*
733745
* SYS_MENU_FILE Name of the default menu.vim file.

src/os_amiga.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -129,24 +129,6 @@ typedef long off_t;
129129
#ifndef DFLT_HELPFILE
130130
# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
131131
#endif
132-
#ifndef FILETYPE_FILE
133-
# define FILETYPE_FILE "filetype.vim"
134-
#endif
135-
#ifndef FTPLUGIN_FILE
136-
# define FTPLUGIN_FILE "ftplugin.vim"
137-
#endif
138-
#ifndef INDENT_FILE
139-
# define INDENT_FILE "indent.vim"
140-
#endif
141-
#ifndef FTOFF_FILE
142-
# define FTOFF_FILE "ftoff.vim"
143-
#endif
144-
#ifndef FTPLUGOF_FILE
145-
# define FTPLUGOF_FILE "ftplugof.vim"
146-
#endif
147-
#ifndef INDOFF_FILE
148-
# define INDOFF_FILE "indoff.vim"
149-
#endif
150132
#ifndef SYNTAX_FNAME
151133
# define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
152134
#endif

src/os_dos.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,6 @@
8888
# define DFLT_HELPFILE "$VIMRUNTIME\\doc\\help.txt"
8989
#endif
9090

91-
#ifndef FILETYPE_FILE
92-
# define FILETYPE_FILE "filetype.vim"
93-
#endif
94-
#ifndef FTPLUGIN_FILE
95-
# define FTPLUGIN_FILE "ftplugin.vim"
96-
#endif
97-
#ifndef INDENT_FILE
98-
# define INDENT_FILE "indent.vim"
99-
#endif
100-
#ifndef FTOFF_FILE
101-
# define FTOFF_FILE "ftoff.vim"
102-
#endif
103-
#ifndef FTPLUGOF_FILE
104-
# define FTPLUGOF_FILE "ftplugof.vim"
105-
#endif
106-
#ifndef INDOFF_FILE
107-
# define INDOFF_FILE "indoff.vim"
108-
#endif
109-
11091
#ifndef SYNTAX_FNAME
11192
# define SYNTAX_FNAME "$VIMRUNTIME\\syntax\\%s.vim"
11293
#endif

src/os_mac.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -145,25 +145,6 @@
145145
# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
146146
#endif
147147

148-
#ifndef FILETYPE_FILE
149-
# define FILETYPE_FILE "filetype.vim"
150-
#endif
151-
#ifndef FTPLUGIN_FILE
152-
# define FTPLUGIN_FILE "ftplugin.vim"
153-
#endif
154-
#ifndef INDENT_FILE
155-
# define INDENT_FILE "indent.vim"
156-
#endif
157-
#ifndef FTOFF_FILE
158-
# define FTOFF_FILE "ftoff.vim"
159-
#endif
160-
#ifndef FTPLUGOF_FILE
161-
# define FTPLUGOF_FILE "ftplugof.vim"
162-
#endif
163-
#ifndef INDOFF_FILE
164-
# define INDOFF_FILE "indoff.vim"
165-
#endif
166-
167148
#ifndef SYNTAX_FNAME
168149
# define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
169150
#endif

src/os_unix.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -216,24 +216,6 @@ typedef struct dsc$descriptor DESC;
216216
#ifndef DFLT_HELPFILE
217217
# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
218218
#endif
219-
#ifndef FILETYPE_FILE
220-
# define FILETYPE_FILE "filetype.vim"
221-
#endif
222-
#ifndef FTPLUGIN_FILE
223-
# define FTPLUGIN_FILE "ftplugin.vim"
224-
#endif
225-
#ifndef INDENT_FILE
226-
# define INDENT_FILE "indent.vim"
227-
#endif
228-
#ifndef FTOFF_FILE
229-
# define FTOFF_FILE "ftoff.vim"
230-
#endif
231-
#ifndef FTPLUGOF_FILE
232-
# define FTPLUGOF_FILE "ftplugof.vim"
233-
#endif
234-
#ifndef INDOFF_FILE
235-
# define INDOFF_FILE "indoff.vim"
236-
#endif
237219
#ifndef SYS_MENU_FILE
238220
# define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
239221
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1621,
698700
/**/
699701
1620,
700702
/**/

0 commit comments

Comments
 (0)