patch 8.1.2077: the ops.c file is too big
Problem: The ops.c file is too big.
Solution: Move code for dealing with registers to a new file. (Yegappan
Lakshmanan, closes #4982)
diff --git a/src/Makefile b/src/Makefile
index eebef25..9462404 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1644,6 +1644,7 @@
pty.c \
quickfix.c \
regexp.c \
+ register.c \
scriptfile.c \
screen.c \
search.c \
@@ -1778,6 +1779,7 @@
objects/pty.o \
objects/quickfix.o \
objects/regexp.o \
+ objects/register.o \
objects/scriptfile.o \
objects/screen.o \
objects/search.o \
@@ -1937,6 +1939,7 @@
pty.pro \
quickfix.pro \
regexp.pro \
+ register.pro \
scriptfile.pro \
screen.pro \
search.pro \
@@ -3353,6 +3356,9 @@
objects/regexp.o: regexp.c regexp_bt.c regexp_nfa.c
$(CCC) -o $@ regexp.c
+objects/register.o: register.c
+ $(CCC) -o $@ register.c
+
objects/scriptfile.o: scriptfile.c
$(CCC) -o $@ scriptfile.c
@@ -3835,6 +3841,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 regexp_bt.c regexp_nfa.c
+objects/register.o: register.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/scriptfile.o: scriptfile.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 \