Functions for working with the idealized calendar of Planet Xhilr
リビジョン | eb373eaf8b82c3e146cb2fd1c0800932de9ea2ac (tree) |
---|---|
日時 | 2017-06-13 17:13:52 |
作者 | Joel Matthew Rees <joel.rees@gmai...> |
コミッター | Joel Matthew Rees |
segfaults, FWIW
@@ -146,7 +146,7 @@ typedef signed char sbyte_t; | ||
146 | 146 | #define SKIPyear_short_1 1 |
147 | 147 | #define SKIPyear_short_2 4 |
148 | 148 | #define SKIPyear_medium 48 |
149 | -#define SKIPyear_long 186 /* Must be short1 or short2 within the seven year cycle. */ | |
149 | +#define LEAPyear_long 186 /* Must be short1 or short2 within the seven year cycle. */ | |
150 | 150 | |
151 | 151 | |
152 | 152 | /* Since skipyears are the exception, we test for skipyears instead of leapyears. |
@@ -163,7 +163,7 @@ int isskipyr( long year ) | ||
163 | 163 | { return 0; |
164 | 164 | } |
165 | 165 | rem = year % YEARcycle_long; |
166 | - if ( rem == SKIPyear_long ) /* Must be short1 or short2 within the seven year cycle. */ | |
166 | + if ( rem == LEAPyear_long ) /* Must be short1 or short2 within the seven year cycle. */ | |
167 | 167 | { return 0; |
168 | 168 | } |
169 | 169 | return 1; |