Branch: Tag:

2008-11-04

2008-11-04 15:49:23 by Martin Stjernholm <mast@lysator.liu.se>

Ported fix from 7.4: Don't use variables to create function aliases. (They
don't cause garbage in 7.6 and later, but they're still slow and makes the
objects unnecessarily large.)

Rev: lib/modules/Calendar.pmod/Event.pmod:1.25
Rev: lib/modules/Calendar.pmod/Events.pmod:1.20
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.36
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.45

1:   //! module Calendar    - // $Id: TimeRanges.pmod,v 1.35 2008/06/28 16:36:54 nilsson Exp $ + // $Id: TimeRanges.pmod,v 1.36 2008/11/04 15:49:23 mast Exp $      #pike __REAL_VERSION__   
297:   //! the time period. <tt>t*17</tt> is   //! the same as doing <tt>t-><ref>set_size</ref>(t,17)</tt>.    -  function ``* = `*; +  TimeRange ``* (int n) {return `* (n);}    TimeRange `*(int|float n)    {    return set_size((int)n,this);
698:   //! &gt;----- cut -----&lt;   //! </pre>    -  function ``& = `&; +  TimeRange|zero ``& (TimeRange with, mixed... extra) +  {return `& (with, @extra);}    TimeRange|zero `&(TimeRange with, mixed ...extra)    {    if (with->is_nulltimerange)
734:   //! &lt;----------union----------&gt;   //! </pre>    -  function ``| = `|; +  TimeRange ``| (TimeRange with, mixed... extra) {return `| (with, @extra);}    TimeRange `|(TimeRange with,mixed ...extra)    {    if (with->is_nulltimerange)
773:   //! &lt;----| |----> - exclusive or   //! </pre>    -  function ``^ = `^; +  TimeRange ``^ (TimeRange with, mixed... extra) {return `^ (with, @extra);}    TimeRange `^(TimeRange with,mixed ... extra)    {    if (with->is_supertimerange)