Logo Search packages:      
Sourcecode: libical version File versions  Download package

static int icalrecur_one_byrule ( icalrecur_iterator impl,
enum byrule  one 
) [static]

Check that the rule has only the one given interdat byrule parts.

Definition at line 684 of file icalrecur.c.

Referenced by icalrecur_iterator_new().

{
    int passes = 1;
    enum byrule itr;

    for(itr = BY_DAY; itr != BY_SET_POS; itr++){
      
      if ((itr==one && impl->by_ptrs[itr][0] == ICAL_RECURRENCE_ARRAY_MAX) ||
          (itr!=one && impl->by_ptrs[itr][0] != ICAL_RECURRENCE_ARRAY_MAX)) {
          passes = 0;
      }
    }

    return passes;
} 


Generated by  Doxygen 1.6.0   Back to index