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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Events.pmod:135:    n,days)>=2)    return Event.Easter_Relative(id,s,n);    error("Events: rule error; unknown rule format:\n%O\n",source);       case "Julian_Easter":    if (sscanf(rule,"Julian_Easter%*[ \t]%d%*[ \t]%d days",    n,days)>=2)    return Event.Easter_Relative(id,s,n);    error("Events: rule error; unknown rule format:\n%O\n",source);    +  case "Equinox": +  if (sscanf(rule, "Equinox%*[ \t]%s", string type)) { +  switch(String.trim_all_whites(type)) { +  case "Vernal": +  return Event.Solar(0); +  case "Autumnal": +  return Event.Solar(2); +  } +  } +  error("Events: rule error; unknown rule format:\n%O\n",source); +     case "Weekday":    if (sscanf(rule,"Weekday%*[ \t]%s%*[ \t]%d days",    wd,days)>=2 && (n=wd2n[wd]))    return Event.Weekday(n,id);    error("Events: rule error; unknown rule format:\n%O\n",source);       case "Null":    return Event.NullEvent(id,s);       default: