From 172efd71798a00469658b0f0e6fc730bac6fa5fe Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Tue, 5 Sep 2017 01:15:25 +0200 Subject: Remove phase of moon feature The computation never really worked before and it seems like the feature is not very helpful, sometimes even confusing (see GitHub issue #21). The macro ISLEAP is moved to calcurse.h. Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/calcurse.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 10e60aa..133b6b9 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -302,6 +302,8 @@ struct date { unsigned yyyy; }; +#define ISLEAP(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) + /* Appointment definition. */ struct apoint { long start; /* seconds since 1 jan 1970 */ @@ -740,7 +742,6 @@ void ui_calendar_change_day(int); void ui_calendar_move(enum move, int); long ui_calendar_start_of_year(void); long ui_calendar_end_of_year(void); -const char *ui_calendar_get_pom(time_t); /* config.c */ void config_load(void); -- cgit v1.2.3-54-g00ecf