Skip to content

Commit 0a8fed6

Browse files
committed
patch 8.2.0256: time and timer related code is spread out
Problem: Time and timer related code is spread out. Solution: Move time and timer related code to a new file. (Yegappan Lakshmanan, closes #5604)
1 parent f2cecb6 commit 0a8fed6

24 files changed

Lines changed: 1096 additions & 1058 deletions

Filelist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ SRC_ALL = \
127127
src/termlib.c \
128128
src/testing.c \
129129
src/textprop.c \
130+
src/time.c \
130131
src/ui.c \
131132
src/undo.c \
132133
src/usercmd.c \
@@ -275,6 +276,7 @@ SRC_ALL = \
275276
src/proto/termlib.pro \
276277
src/proto/testing.pro \
277278
src/proto/textprop.pro \
279+
src/proto/time.pro \
278280
src/proto/ui.pro \
279281
src/proto/undo.pro \
280282
src/proto/usercmd.pro \

src/Make_cyg_ming.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ OBJ = \
783783
$(OUTDIR)/term.o \
784784
$(OUTDIR)/testing.o \
785785
$(OUTDIR)/textprop.o \
786+
$(OUTDIR)/time.o \
786787
$(OUTDIR)/ui.o \
787788
$(OUTDIR)/undo.o \
788789
$(OUTDIR)/usercmd.o \

src/Make_morph.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ SRC = arabic.c \
102102
term.c \
103103
testing.c \
104104
textprop.c \
105+
time.c \
105106
ui.c \
106107
undo.c \
107108
usercmd.c \

src/Make_mvc.mak

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ OBJ = \
799799
$(OUTDIR)\term.obj \
800800
$(OUTDIR)\testing.obj \
801801
$(OUTDIR)\textprop.obj \
802+
$(OUTDIR)\time.obj \
802803
$(OUTDIR)\ui.obj \
803804
$(OUTDIR)\undo.obj \
804805
$(OUTDIR)\usercmd.obj \
@@ -1733,6 +1734,8 @@ $(OUTDIR)/term.obj: $(OUTDIR) testing.c $(INCL)
17331734

17341735
$(OUTDIR)/textprop.obj: $(OUTDIR) textprop.c $(INCL)
17351736

1737+
$(OUTDIR)/time.obj: $(OUTDIR) time.c $(INCL)
1738+
17361739
$(OUTDIR)/ui.obj: $(OUTDIR) ui.c $(INCL)
17371740

17381741
$(OUTDIR)/undo.obj: $(OUTDIR) undo.c $(INCL)
@@ -1926,6 +1929,7 @@ proto.h: \
19261929
proto/term.pro \
19271930
proto/testing.pro \
19281931
proto/textprop.pro \
1932+
proto/time.pro \
19291933
proto/ui.pro \
19301934
proto/undo.pro \
19311935
proto/usercmd.pro \

src/Make_vms.mms

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ SRC = \
381381
termlib.c \
382382
testing.c \
383383
textprop.c \
384+
time.c \
384385
ui.c \
385386
undo.c \
386387
usercmd.c \
@@ -487,6 +488,7 @@ OBJ = \
487488
termlib.obj \
488489
testing.obj \
489490
textprop.obj \
491+
time.obj \
490492
ui.obj \
491493
undo.obj \
492494
usercmd.obj \
@@ -978,6 +980,9 @@ testing.obj : testing.c vim.h [.auto]config.h feature.h os_unix.h \
978980
textprop.obj : textprop.c vim.h [.auto]config.h feature.h os_unix.h \
979981
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
980982
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
983+
time.obj : time.c vim.h [.auto]config.h feature.h os_unix.h \
984+
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
985+
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
981986
ui.obj : ui.c vim.h [.auto]config.h feature.h os_unix.h \
982987
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
983988
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h

src/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,7 @@ BASIC_SRC = \
16611661
terminal.c \
16621662
testing.c \
16631663
textprop.c \
1664+
time.c \
16641665
ui.c \
16651666
undo.c \
16661667
usercmd.c \
@@ -1800,6 +1801,7 @@ OBJ_COMMON = \
18001801
objects/terminal.o \
18011802
objects/testing.o \
18021803
objects/textprop.o \
1804+
objects/time.o \
18031805
objects/ui.o \
18041806
objects/undo.o \
18051807
objects/usercmd.o \
@@ -1971,6 +1973,7 @@ PRO_AUTO = \
19711973
termlib.pro \
19721974
testing.pro \
19731975
textprop.pro \
1976+
time.pro \
19741977
ui.pro \
19751978
undo.pro \
19761979
usercmd.pro \
@@ -3433,6 +3436,9 @@ objects/testing.o: testing.c
34333436
objects/textprop.o: textprop.c
34343437
$(CCC) -o $@ textprop.c
34353438

3439+
objects/time.o: time.c
3440+
$(CCC) -o $@ time.c
3441+
34363442
objects/ui.o: ui.c
34373443
$(CCC) -o $@ ui.c
34383444

@@ -3959,6 +3965,10 @@ objects/textprop.o: textprop.c vim.h protodef.h auto/config.h feature.h os_unix.
39593965
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
39603966
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
39613967
proto.h globals.h
3968+
objects/time.o: time.c vim.h protodef.h auto/config.h feature.h os_unix.h \
3969+
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
3970+
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
3971+
proto.h globals.h
39623972
objects/ui.o: ui.c vim.h protodef.h auto/config.h feature.h os_unix.h \
39633973
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
39643974
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \

src/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ tag.c | tags
7979
term.c | terminal handling, termcap codes
8080
testing.c | testing: assert and test functions
8181
textprop.c | text properties
82+
time.c | time and timer functions
8283
undo.c | undo and redo
8384
usercmd.c | user defined commands
8485
userfunc.c | user defined functions

0 commit comments

Comments
 (0)