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.20 2003/03/10 01:24:08 nilsson Exp $ + // $Id: TimeRanges.pmod,v 1.21 2003/03/12 09:23:37 agehall Exp $      #pike __REAL_VERSION__      #define zero int(0..0)      import ".";      program SuperTimeRange=cSuperTimeRange;      string calendar_name() { return "TimeRanges"; }
pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:674:   //!   //! <tt>equal(</tt>a<tt>,</tt>b<tt>)</tt> are considered   //! 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 wierd bugs, so equal uses `== for now. + //! due to weird bugs, so equal uses `== for now.       int(0..1) `==(TimeRange what)    {    return object_program(what)==object_program(this_object()) &&    what->ruleset()==ruleset() &&    equals(what);    }       int __hash();