Some compilers seem to understand this construction as an empty
for() cycle, followed by an unrelated block enclosed in braces.
We make sure the compiler does what we want by putting the
opening brace at the same line as for().
/* FREQ=YEARLY; BYMONTHDAY=1,15; BYMONTH=10 */
for(j=0;impl->by_ptrs[BY_MONTH][j]!=ICAL_RECURRENCE_ARRAY_MAX;j++){
- for(k=0;impl->by_ptrs[BY_MONTH_DAY][k]!=ICAL_RECURRENCE_ARRAY_MAX;k++)
- {
+ for(k=0;impl->by_ptrs[BY_MONTH_DAY][k]!=ICAL_RECURRENCE_ARRAY_MAX;k++){
short month = impl->by_ptrs[BY_MONTH][j];
short month_day = impl->by_ptrs[BY_MONTH_DAY][k];
short doy;