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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:1:   //! module Calendar    - // $Id: TimeRanges.pmod,v 1.30 2006/01/11 19:22:30 mbaehr Exp $ + // $Id: TimeRanges.pmod,v 1.31 2006/01/13 15:57:20 grubba Exp $      #pike __REAL_VERSION__      #define zero int(0..0)      program SuperTimeRange=cSuperTimeRange;      string calendar_name() { return "TimeRanges"; }      object calendar_object=this;
pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:671:   //! true if a and b are the same timerange, exactly the same   //! as the <ref>equals</ref> method.   //!   //! The <tt>__hash</tt> method is also present,   //! to make timeranges possible to use as keys in mappings.   //!   //! known bugs:   //! _equal is not currently possible to overload,   //! due to weird bugs, so equal uses `== for now.    -  int(0..1) `==(TimeRange what) +  int(0..1) `==(mixed what)    { -  return what->ruleset()==ruleset() && equals(what); +  return objectp(what) && functionp(what->ruleset) && +  what->ruleset()==ruleset() && equals(what);    }       int __hash();      // int(0..1) _equal(TimeRange what)   // {   // return equals(what);   // }      //! method TimeRange `&(TimeRange with)