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.28 2004/03/30 18:11:59 nilsson Exp $ + // $Id: TimeRanges.pmod,v 1.29 2006/01/11 19:15:09 mbaehr 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:   //!   //! 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)    { -  return object_program(what)==this_program && -  what->ruleset()==ruleset() && -  equals(what); +  return what->ruleset()==ruleset() && equals(what);    }       int __hash();      // int(0..1) _equal(TimeRange what)   // {   // return equals(what);   // }      //! method TimeRange `&(TimeRange with)