Skip to content

Commit

Permalink
minor, honour BYHOUR, BYMINUTE, and BYSECOND fields when printing
Browse files Browse the repository at this point in the history
  • Loading branch information
hroptatyr committed May 25, 2024
1 parent 8dc4ab9 commit 0d215b9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/evical.c
Original file line number Diff line number Diff line change
Expand Up @@ -2031,6 +2031,43 @@ send_rrul(int whither, rrulsp_t rr, size_t ccnt)
}
}

with (unsigned int h) {
bitint_iter_t i = 0UL;

if (!bui31_has_bits_p(rr->H)) {
break;
}
h = bui31_next(&i, rr->H);
fdprintf(";BYHOUR=%u", h);
while (h = bui31_next(&i, rr->H), i) {
fdprintf(",%u", h);
}
}
with (unsigned int m) {
bitint_iter_t i = 0UL;

if (!bui31_has_bits_p(rr->M)) {
break;
}
m = bui31_next(&i, rr->M);
fdprintf(";BYMINUTE=%u", m);
while (m = bui31_next(&i, rr->M), i) {
fdprintf(",%u", m);
}
}
with (unsigned int s) {
bitint_iter_t i = 0UL;

if (!bui63_has_bits_p(rr->S)) {
break;
}
s = bui31_next(&i, rr->S);
fdprintf(";BYSECOND=%u", s);
while (s = bui31_next(&i, rr->S), i) {
fdprintf(",%u", s);
}
}

with (int p) {
bitint_iter_t i = 0UL;

Expand Down

0 comments on commit 0d215b9

Please sign in to comment.