Skip to content

Commit 7528d1f

Browse files
committed
patch 8.1.2057: the screen.c file is much too big
Problem: The screen.c file is much too big. Solution: Split it in three parts. (Yegappan Lakshmanan, closes #4943)
1 parent cd67059 commit 7528d1f

17 files changed

Lines changed: 6650 additions & 6719 deletions

Filelist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ SRC_ALL = \
3232
src/dict.c \
3333
src/diff.c \
3434
src/digraph.c \
35+
src/drawline.c \
36+
src/drawscreen.c \
3537
src/edit.c \
3638
src/eval.c \
3739
src/evalbuffer.c \
@@ -192,6 +194,8 @@ SRC_ALL = \
192194
src/proto/dict.pro \
193195
src/proto/diff.pro \
194196
src/proto/digraph.pro \
197+
src/proto/drawline.pro \
198+
src/proto/drawscreen.pro \
195199
src/proto/edit.pro \
196200
src/proto/eval.pro \
197201
src/proto/evalbuffer.pro \

src/Make_cyg_ming.mak

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ OBJ = \
719719
$(OUTDIR)/dict.o \
720720
$(OUTDIR)/diff.o \
721721
$(OUTDIR)/digraph.o \
722+
$(OUTDIR)/drawline.o \
723+
$(OUTDIR)/drawscreen.o \
722724
$(OUTDIR)/edit.o \
723725
$(OUTDIR)/eval.o \
724726
$(OUTDIR)/evalbuffer.o \

src/Make_morph.mak

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ SRC = arabic.c \
3939
dict.c \
4040
diff.c \
4141
digraph.c \
42+
drawline.c \
43+
drawscreen.c \
4244
edit.c \
4345
eval.c \
4446
evalbuffer.c \

src/Make_mvc.mak

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,8 @@ OBJ = \
726726
$(OUTDIR)\dict.obj \
727727
$(OUTDIR)\diff.obj \
728728
$(OUTDIR)\digraph.obj \
729+
$(OUTDIR)\drawline.obj \
730+
$(OUTDIR)\drawscreen.obj \
729731
$(OUTDIR)\edit.obj \
730732
$(OUTDIR)\eval.obj \
731733
$(OUTDIR)\evalbuffer.obj \
@@ -1484,6 +1486,10 @@ $(OUTDIR)/xpatience.obj: $(OUTDIR) xdiff/xpatience.c $(XDIFF_DEPS)
14841486

14851487
$(OUTDIR)/digraph.obj: $(OUTDIR) digraph.c $(INCL)
14861488

1489+
$(OUTDIR)/drawline.obj: $(OUTDIR) drawline.c $(INCL)
1490+
1491+
$(OUTDIR)/drawscreen.obj: $(OUTDIR) drawscreen.c $(INCL)
1492+
14871493
$(OUTDIR)/edit.obj: $(OUTDIR) edit.c $(INCL)
14881494

14891495
$(OUTDIR)/eval.obj: $(OUTDIR) eval.c $(INCL)
@@ -1783,6 +1789,8 @@ proto.h: \
17831789
proto/dict.pro \
17841790
proto/diff.pro \
17851791
proto/digraph.pro \
1792+
proto/drawline.pro \
1793+
proto/drawscreen.pro \
17861794
proto/edit.pro \
17871795
proto/eval.pro \
17881796
proto/evalbuffer.pro \

src/Make_vms.mms

Lines changed: 30 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) \
309309

310310
SRC = arabic.c arglist.c autocmd.c beval.c blob.c blowfish.c buffer.c \
311311
change.c charset.c cmdexpand.c cmdhist.c crypt.c crypt_zip.c \
312-
debugger.c dict.c diff.c digraph.c edit.c eval.c evalbuffer.c \
313-
evalfunc.c \
312+
debugger.c dict.c diff.c digraph.c drawline.c drawscreen.c edit.c \
313+
eval.c evalbuffer.c evalfunc.c \
314314
evalvars.c evalwindow.c ex_cmds.c ex_cmds2.c ex_docmd.c ex_eval.c \
315315
ex_getln.c \
316316
if_cscope.c if_xcmdsrv.c fileio.c filepath.c, findfile.c fold.c \
@@ -329,8 +329,8 @@ SRC = arabic.c arglist.c autocmd.c beval.c blob.c blowfish.c buffer.c \
329329
OBJ = arabic.obj arglist.obj autocmd.obj beval.obj blob.obj blowfish.obj \
330330
buffer.obj change.obj charset.obj cmdexpand.obj cmdhist.obj \
331331
crypt.obj crypt_zip.obj debugger.obj dict.obj diff.obj digraph.obj \
332-
edit.obj eval.obj evalbuffer.obj evalfunc.obj evalvars.obj \
333-
evalwindow.obj ex_cmds.obj ex_cmds2.obj \
332+
drawline.obj drawscreen.obj edit.obj eval.obj evalbuffer.obj \
333+
evalfunc.obj evalvars.obj evalwindow.obj ex_cmds.obj ex_cmds2.obj \
334334
ex_docmd.obj ex_eval.obj ex_getln.obj if_cscope.obj if_xcmdsrv.obj \
335335
fileio.obj filepath.obj \
336336
findfile.obj fold.obj getchar.obj hardcopy.obj hashtab.obj \
@@ -556,16 +556,22 @@ dict.obj : dict.c vim.h [.auto]config.h feature.h os_unix.h \
556556
globals.h
557557
diff.obj : diff.c vim.h [.auto]config.h feature.h os_unix.h \
558558
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
559-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
560-
559+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
561560
digraph.obj : digraph.c vim.h [.auto]config.h feature.h os_unix.h \
562561
ascii.h keymap.h term.h macros.h structs.h regexp.h \
563562
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
564563
globals.h
564+
drawline.obj : drawline.c vim.h [.auto]config.h feature.h os_unix.h \
565+
ascii.h keymap.h term.h macros.h structs.h regexp.h \
566+
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
567+
globals.h
568+
drawscreen.obj : drawscreen.c vim.h [.auto]config.h feature.h os_unix.h \
569+
ascii.h keymap.h term.h macros.h structs.h regexp.h \
570+
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
571+
globals.h
565572
edit.obj : edit.c vim.h [.auto]config.h feature.h os_unix.h \
566573
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
567-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
568-
574+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
569575
eval.obj : eval.c vim.h [.auto]config.h feature.h os_unix.h \
570576
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
571577
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
@@ -620,8 +626,7 @@ findfile.obj : findfile.c vim.h [.auto]config.h feature.h os_unix.h \
620626
globals.h
621627
fold.obj : fold.c vim.h [.auto]config.h feature.h os_unix.h \
622628
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
623-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
624-
629+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
625630
getchar.obj : getchar.c vim.h [.auto]config.h feature.h os_unix.h \
626631
ascii.h keymap.h term.h macros.h structs.h regexp.h \
627632
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
@@ -669,8 +674,7 @@ map.obj : map.c vim.h [.auto]config.h feature.h os_unix.h \
669674
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
670675
mark.obj : mark.c vim.h [.auto]config.h feature.h os_unix.h \
671676
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
672-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
673-
677+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
674678
memfile.obj : memfile.c vim.h [.auto]config.h feature.h os_unix.h \
675679
ascii.h keymap.h term.h macros.h structs.h regexp.h \
676680
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
@@ -681,8 +685,7 @@ memline.obj : memline.c vim.h [.auto]config.h feature.h os_unix.h \
681685
globals.h
682686
menu.obj : menu.c vim.h [.auto]config.h feature.h os_unix.h \
683687
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
684-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
685-
688+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
686689
message.obj : message.c vim.h [.auto]config.h feature.h os_unix.h \
687690
ascii.h keymap.h term.h macros.h structs.h regexp.h \
688691
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
@@ -693,24 +696,20 @@ misc1.obj : misc1.c vim.h [.auto]config.h feature.h os_unix.h \
693696
version.h
694697
misc2.obj : misc2.c vim.h [.auto]config.h feature.h os_unix.h \
695698
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
696-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
697-
699+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
698700
move.obj : move.c vim.h [.auto]config.h feature.h os_unix.h \
699701
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
700-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
701-
702+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
702703
mbyte.obj : mbyte.c vim.h [.auto]config.h feature.h os_unix.h \
703704
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
704-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
705-
705+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
706706
normal.obj : normal.c vim.h [.auto]config.h feature.h os_unix.h \
707707
ascii.h keymap.h term.h macros.h structs.h regexp.h \
708708
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
709709
globals.h
710710
ops.obj : ops.c vim.h [.auto]config.h feature.h os_unix.h \
711711
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
712-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
713-
712+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
714713
option.obj : option.c vim.h [.auto]config.h feature.h os_unix.h \
715714
ascii.h keymap.h term.h macros.h structs.h regexp.h \
716715
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
@@ -789,42 +788,33 @@ syntax.obj : syntax.c vim.h [.auto]config.h feature.h os_unix.h \
789788
globals.h
790789
tag.obj : tag.c vim.h [.auto]config.h feature.h os_unix.h \
791790
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
792-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
793-
791+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
794792
term.obj : term.c vim.h [.auto]config.h feature.h os_unix.h \
795793
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
796-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
797-
794+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
798795
termlib.obj : termlib.c vim.h [.auto]config.h feature.h os_unix.h \
799796
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
800-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
801-
797+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
802798
testing.obj : testing.c vim.h [.auto]config.h feature.h os_unix.h \
803799
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
804-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
805-
800+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
806801
textprop.obj : textprop.c vim.h [.auto]config.h feature.h os_unix.h \
807802
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
808-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
809-
803+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
810804
ui.obj : ui.c vim.h [.auto]config.h feature.h os_unix.h \
811805
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
812-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
813-
806+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
814807
undo.obj : undo.c vim.h [.auto]config.h feature.h os_unix.h \
815808
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
816-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
817-
809+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
818810
usercmd.obj : usercmd.c vim.h [.auto]config.h feature.h os_unix.h \
819811
ascii.h keymap.h term.h macros.h option.h structs.h \
820812
regexp.h gui.h beval.h [.proto]gui_beval.pro alloc.h ex_cmds.h spell.h \
821813
proto.h globals.h
822-
823814
userfunc.obj : userfunc.c vim.h [.auto]config.h feature.h os_unix.h \
824815
ascii.h keymap.h term.h macros.h option.h structs.h \
825816
regexp.h gui.h beval.h [.proto]gui_beval.pro alloc.h ex_cmds.h spell.h \
826817
proto.h globals.h
827-
828818
version.obj : version.c vim.h [.auto]config.h feature.h os_unix.h \
829819
ascii.h keymap.h term.h macros.h structs.h regexp.h \
830820
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
@@ -839,8 +829,7 @@ window.obj : window.c vim.h [.auto]config.h feature.h os_unix.h \
839829
globals.h
840830
gui.obj : gui.c vim.h [.auto]config.h feature.h os_unix.h \
841831
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
842-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
843-
832+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
844833
gui_gtk.obj : gui_gtk.c gui_gtk_f.h vim.h [.auto]config.h feature.h \
845834
os_unix.h ascii.h keymap.h term.h macros.h structs.h \
846835
regexp.h gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h \
@@ -893,8 +882,7 @@ gui_at_fs.obj : gui_at_fs.c vim.h [.auto]config.h feature.h os_unix.h \
893882
globals.h gui_at_sb.h
894883
pty.obj : pty.c vim.h [.auto]config.h feature.h os_unix.h \
895884
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
896-
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
897-
885+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
898886
hangulin.obj : hangulin.c vim.h [.auto]config.h feature.h os_unix.h \
899887
ascii.h keymap.h term.h macros.h structs.h regexp.h \
900888
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \

src/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,8 @@ BASIC_SRC = \
15931593
dict.c \
15941594
diff.c \
15951595
digraph.c \
1596+
drawline.c \
1597+
drawscreen.c \
15961598
edit.c \
15971599
eval.c \
15981600
evalbuffer.c \
@@ -1727,6 +1729,8 @@ OBJ_COMMON = \
17271729
objects/dict.o \
17281730
objects/diff.o \
17291731
objects/digraph.o \
1732+
objects/drawline.o \
1733+
objects/drawscreen.o \
17301734
objects/edit.o \
17311735
objects/eval.o \
17321736
objects/evalbuffer.o \
@@ -1874,6 +1878,8 @@ PRO_AUTO = \
18741878
dict.pro \
18751879
diff.pro \
18761880
digraph.pro \
1881+
drawline.pro \
1882+
drawscreen.pro \
18771883
edit.pro \
18781884
eval.pro \
18791885
evalbuffer.pro \
@@ -3083,6 +3089,12 @@ objects/diff.o: diff.c $(XDIFF_INCL)
30833089
objects/digraph.o: digraph.c
30843090
$(CCC) -o $@ digraph.c
30853091

3092+
objects/drawline.o: drawline.c
3093+
$(CCC) -o $@ drawline.c
3094+
3095+
objects/drawscreen.o: drawscreen.c
3096+
$(CCC) -o $@ drawscreen.c
3097+
30863098
objects/edit.o: edit.c
30873099
$(CCC) -o $@ edit.c
30883100

@@ -3613,6 +3625,14 @@ objects/digraph.o: digraph.c vim.h protodef.h auto/config.h feature.h os_unix.h
36133625
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
36143626
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
36153627
proto.h globals.h
3628+
objects/drawline.o: drawline.c vim.h protodef.h auto/config.h feature.h os_unix.h \
3629+
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
3630+
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
3631+
proto.h globals.h
3632+
objects/drawscreen.o: drawscreen.c vim.h protodef.h auto/config.h feature.h os_unix.h \
3633+
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
3634+
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
3635+
proto.h globals.h
36163636
objects/edit.o: edit.c vim.h protodef.h auto/config.h feature.h os_unix.h \
36173637
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
36183638
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \

src/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ cmdexpand.c | command-line completion
3232
cmdhist.c | command-line history
3333
debugger.c | vim script debugger
3434
diff.c | diff mode (vimdiff)
35+
drawline.c | drawing a window line
36+
drawscreen.c | drawing the windows
3537
eval.c | expression evaluation
3638
evalbuffer.c | buffer related built-in functions
3739
evalfunc.c | built-in functions

0 commit comments

Comments
 (0)