Skip to content

Commit

Permalink
patch 8.1.2005: the regexp.c file is too big
Browse files Browse the repository at this point in the history
Problem:    The regexp.c file is too big.
Solution:   Move the backtracking engine to a separate file. (Yegappan
            Lakshmanan, closes #4905)
  • Loading branch information
brammool committed Sep 7, 2019
1 parent f6ed61e commit 6d7d7cf
Show file tree
Hide file tree
Showing 7 changed files with 5,983 additions and 6,015 deletions.
1 change: 1 addition & 0 deletions Filelist
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ SRC_ALL = \
src/profiler.c \
src/quickfix.c \
src/regexp.c \
src/regexp_bt.c \
src/regexp_nfa.c \
src/regexp.h \
src/scriptfile.c \
Expand Down
2 changes: 1 addition & 1 deletion src/Make_cyg_ming.mak
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ $(OUTDIR)/os_w32exeg.o: os_w32exe.c $(INCL)
$(OUTDIR)/os_win32.o: os_win32.c $(INCL) $(MZSCHEME_INCL)
$(CC) -c $(CFLAGS) os_win32.c -o $@

$(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL)
$(OUTDIR)/regexp.o: regexp.c regexp_bt.c regexp_nfa.c $(INCL)
$(CC) -c $(CFLAGS) regexp.c -o $@

$(OUTDIR)/terminal.o: terminal.c $(INCL) $(TERM_DEPS)
Expand Down
2 changes: 1 addition & 1 deletion src/Make_mvc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ $(OUTDIR)/profiler.obj: $(OUTDIR) profiler.c $(INCL)

$(OUTDIR)/quickfix.obj: $(OUTDIR) quickfix.c $(INCL)

$(OUTDIR)/regexp.obj: $(OUTDIR) regexp.c regexp_nfa.c $(INCL)
$(OUTDIR)/regexp.obj: $(OUTDIR) regexp.c regexp_bt.c regexp_nfa.c $(INCL)

$(OUTDIR)/scriptfile.obj: $(OUTDIR) scriptfile.c $(INCL)

Expand Down
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3326,7 +3326,7 @@ objects/pty.o: pty.c
objects/quickfix.o: quickfix.c
$(CCC) -o $@ quickfix.c

objects/regexp.o: regexp.c regexp_nfa.c
objects/regexp.o: regexp.c regexp_bt.c regexp_nfa.c
$(CCC) -o $@ regexp.c

objects/scriptfile.o: scriptfile.c
Expand Down Expand Up @@ -3794,7 +3794,7 @@ objects/quickfix.o: quickfix.c vim.h protodef.h auto/config.h feature.h os_unix.
objects/regexp.o: regexp.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 regexp_nfa.c
proto.h globals.h regexp_bt.c regexp_nfa.c
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 \
Expand Down
Loading

0 comments on commit 6d7d7cf

Please sign in to comment.