patch 8.1.1979: code for handling file names is spread out
Problem: Code for handling file names is spread out.
Solution: Move code to new filepath.c file. Graduate FEAT_MODIFY_FNAME.
diff --git a/src/Makefile b/src/Makefile
index e1cb485..840e3fe 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1603,6 +1603,7 @@
ex_eval.c \
ex_getln.c \
fileio.c \
+ filepath.c \
findfile.c \
fold.c \
getchar.c \
@@ -1733,6 +1734,7 @@
objects/ex_eval.o \
objects/ex_getln.o \
objects/fileio.o \
+ objects/filepath.o \
objects/findfile.o \
objects/fold.o \
objects/getchar.o \
@@ -1876,6 +1878,7 @@
ex_eval.pro \
ex_getln.pro \
fileio.pro \
+ filepath.pro \
findfile.pro \
fold.pro \
getchar.pro \
@@ -3101,6 +3104,9 @@
objects/fileio.o: fileio.c
$(CCC) -o $@ fileio.c
+objects/filepath.o: filepath.c
+ $(CCC) -o $@ filepath.c
+
objects/findfile.o: findfile.c
$(CCC) -o $@ findfile.c
@@ -3629,6 +3635,10 @@
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
proto.h globals.h
+objects/filepath.o: filepath.c vim.h protodef.h auto/config.h feature.h os_unix.h \
+ auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
+ proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
+ proto.h globals.h
objects/findfile.o: findfile.c vim.h protodef.h auto/config.h feature.h os_unix.h \
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \