diff options
author | Douglas Christman <DouglasChristman@gmail.com> | 2016-11-24 17:47:25 -0500 |
---|---|---|
committer | Douglas Christman <DouglasChristman@gmail.com> | 2016-11-24 18:40:14 -0500 |
commit | c58b1b3abf829e00fa6aa01f0b57b8e6a3041511 (patch) | |
tree | 7f6abf20bfd117d04d8e8b9041e2c4c080ae2779 /src | |
parent | 9904dc00e70c44762f63c05bce703f2a2a0e46bb (diff) |
calendarspec: rename "eom" to "end_of_month"
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/calendarspec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/basic/calendarspec.c b/src/basic/calendarspec.c index 0caa1d4696..329fd213c8 100644 --- a/src/basic/calendarspec.c +++ b/src/basic/calendarspec.c @@ -153,7 +153,7 @@ int calendar_spec_normalize(CalendarSpec *c) { return 0; } -_pure_ static bool chain_valid(CalendarComponent *c, int from, int to, bool eom) { +_pure_ static bool chain_valid(CalendarComponent *c, int from, int to, bool end_of_month) { if (!c) return true; @@ -163,17 +163,17 @@ _pure_ static bool chain_valid(CalendarComponent *c, int from, int to, bool eom) /* * c->repeat must be short enough so at least one repetition may * occur before the end of the interval. For dates scheduled - * relative to the end of the month (eom), c->value corresponds - * to the Nth last day of the month. + * relative to the end of the month, c->value corresponds to the + * Nth last day of the month. */ - if (eom && c->value - c->repeat < from) + if (end_of_month && c->value - c->repeat < from) return false; - if (!eom && c->value + c->repeat > to) + if (!end_of_month && c->value + c->repeat > to) return false; if (c->next) - return chain_valid(c->next, from, to, eom); + return chain_valid(c->next, from, to, end_of_month); return true; } |