maint: factor out the common show_date functionality
commit292cf895453e22d79e321521bda1d74f27070e25
authorNikolay Nechaev <Nikolay_Nechaev@mail.ru>
Sun, 5 May 2024 09:06:18 +0000 (5 12:06 +0300)
committerPádraig Brady <P@draigBrady.com>
Sun, 5 May 2024 16:50:14 +0000 (5 17:50 +0100)
tree682e3c950fb1de84b19c898e6114c8a9448ab077
parentecf7d12937cdc1b8a1b7a9df2251ecd28870bd75
maint: factor out the common show_date functionality

* src/show-date.{h,c}: Declaration and definition of show_date.
* src/du.c: Wse the common show_date instead of the previous local
function.
* src/date.c: Wse the common show_date via a wrapper show_date_helper.
* src/local.mk: Corresponding adjustments.
po/POTFILES.in
src/date.c
src/du.c
src/local.mk
src/show-date.c [new file with mode: 0644]
src/show-date.h [new file with mode: 0644]