patch 8.1.2022: the option.c file is too big

Problem:    The option.c file is too big.
Solution:   Move option definitions to a separate file. (Yegappan Lakshmanan,
            closes #4918)
This commit is contained in:
Bram Moolenaar 2019-09-12 22:26:43 +02:00
parent 8fe1000e9c
commit 0eddca40a6
7 changed files with 3213 additions and 3210 deletions

View File

@ -87,6 +87,7 @@ SRC_ALL = \
src/ops.c \
src/option.c \
src/option.h \
src/optiondefs.h \
src/popupmnu.c \
src/popupwin.c \
src/profiler.c \

View File

@ -1604,7 +1604,7 @@ $(OUTDIR)/channel.obj: $(OUTDIR) channel.c $(INCL)
$(OUTDIR)/normal.obj: $(OUTDIR) normal.c $(INCL)
$(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL)
$(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL) optiondefs.h
$(OUTDIR)/ops.obj: $(OUTDIR) ops.c $(INCL)

View File

@ -714,7 +714,7 @@ ops.obj : ops.c vim.h [.auto]config.h feature.h os_unix.h \
option.obj : option.c vim.h [.auto]config.h feature.h os_unix.h \
ascii.h keymap.h term.h macros.h structs.h regexp.h \
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
globals.h
globals.h optiondefs.h
os_unix.obj : os_unix.c vim.h [.auto]config.h feature.h os_unix.h \
ascii.h keymap.h term.h macros.h structs.h regexp.h \
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \

View File

@ -3284,7 +3284,7 @@ objects/normal.o: normal.c
objects/ops.o: ops.c
$(CCC) -o $@ ops.c
objects/option.o: option.c
objects/option.o: option.c optiondefs.h
$(CCC_NF) $(LUA_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(PYTHON3_CFLAGS) $(RUBY_CFLAGS) $(TCL_CFLAGS) $(ALL_CFLAGS) -o $@ option.c
objects/os_beos.o: os_beos.c
@ -3762,7 +3762,7 @@ objects/ops.o: ops.c vim.h protodef.h auto/config.h feature.h os_unix.h \
objects/option.o: option.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
proto.h globals.h optiondefs.h
objects/os_unix.o: os_unix.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 \

File diff suppressed because it is too large Load Diff

3205
src/optiondefs.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2022,
/**/
2021,
/**/