From b8c46f4565c3fc1babc01f6792ea9850feebf3f2 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:22:57 -0700 Subject: Step a stats period with one function --- source/ui-stats.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/ui-stats.h') diff --git a/source/ui-stats.h b/source/ui-stats.h index 325e082..1cd0b9d 100644 --- a/source/ui-stats.h +++ b/source/ui-stats.h @@ -20,9 +20,8 @@ struct cgit_period { // Move a tm back to the first day of the period it falls in. void (*trunc)(struct tm *tm); - // Step a truncated tm one whole period back or forward. - void (*dec)(struct tm *tm); - void (*inc)(struct tm *tm); + // Step a truncated tm n whole periods, back when n is negative. + void (*step)(struct tm *tm, int n); // Label the period a tm falls in. The buffer is reused, so a caller // that keeps a label copies it. -- cgit