diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2017-09-05 01:15:25 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2017-09-08 21:08:53 +0200 |
commit | 172efd71798a00469658b0f0e6fc730bac6fa5fe (patch) | |
tree | 9317f6b3f570eb9bd1a95ef607fed871bc5f44c8 /src/calcurse.h | |
parent | 90fe21af88b7191a7f3a979040ec07c3ed03960b (diff) | |
download | calcurse-172efd71798a00469658b0f0e6fc730bac6fa5fe.tar.gz calcurse-172efd71798a00469658b0f0e6fc730bac6fa5fe.zip |
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 <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |