pike.git / lib / modules / Calendar.pmod / Events.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Events.pmod:80:    }    // WDRel May Fri last    if (sscanf(rule,    "WDRel%*[ \t]%s%*[ \t]%s%*[ \t]%s%*[ \t]%d days",    mn,wd,a,days)>=5 && a=="last" &&    (m=month2n[mn]) && wd2n[wd])    {    m=(m%12)+1;    Event.Event e=    Event.Monthday_Weekday_Relative( -  id,s,1,month2n[mn],wd2n[wd],-1,0); +  id,s,1,m,wd2n[wd],-1,0);    e->nd=days;    return e;    }    // WDRel May 17 Fri +17 excl    days=a=0;    if (sscanf(rule,    "WDRel%*[ \t]%[A-z]%*[ \t]%d%*[ \t]%s%*[ \t]"    "%d%*[ \t]%[a-z]%*[ \t]%d days",    mn,md,wd,n,a,days)>=9 && a && a!="" &&    (m=month2n[mn]) && wd2n[wd])