Branch: Tag:

2004-01-11

2004-01-11 00:52:01 by Martin Nilsson <mani@lysator.liu.se>

this_object() -> this

Rev: lib/modules/ADT.pmod/Priority_queue.pike:1.6
Rev: lib/modules/ADT.pmod/Queue.pike:1.9
Rev: lib/modules/ADT.pmod/Relation.pmod/Binary.pike:1.10
Rev: lib/modules/ADT.pmod/Table.pmod:1.27
Rev: lib/modules/Audio.pmod/Codec.pmod:1.10
Rev: lib/modules/Audio.pmod/Format.pmod/module.pmod:1.7
Rev: lib/modules/Calendar.pmod/Event.pmod:1.22
Rev: lib/modules/Calendar.pmod/Stardate.pmod:1.15
Rev: lib/modules/Calendar.pmod/Time.pmod:1.30
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.27
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.32
Rev: lib/modules/Calendar.pmod/YMD.pike:1.9
Rev: lib/modules/Calendar.pmod/mkrules.pike:1.10
Rev: lib/modules/Calendar_I.pmod/Gregorian.pmod:1.31
Rev: lib/modules/Calendar_I.pmod/ISO.pmod:1.11
Rev: lib/modules/Calendar_I.pmod/module.pmod:1.15
Rev: lib/modules/Filesystem.pmod/System.pike:1.17
Rev: lib/modules/Filesystem.pmod/Tar.pmod:1.26
Rev: lib/modules/Filesystem.pmod/module.pmod:1.14
Rev: lib/modules/GTKSupport.pmod/Alert.pike:1.6
Rev: lib/modules/GTKSupport.pmod/Util.pmod:1.9
Rev: lib/modules/GTKSupport.pmod/pCtree.pike:1.7
Rev: lib/modules/GTKSupport.pmod/pDrawingArea.pike:1.6
Rev: lib/modules/Languages.pmod/PLIS.pmod:1.19
Rev: lib/modules/Locale.pmod/module.pmod:1.18
Rev: lib/modules/MIME.pmod/module.pmod:1.10
Rev: lib/modules/Parser.pmod/RCS.pike:1.31
Rev: lib/modules/Parser.pmod/XML.pmod/DOM.pmod:1.11
Rev: lib/modules/Parser.pmod/XML.pmod/NSTree.pmod:1.12
Rev: lib/modules/Parser.pmod/XML.pmod/Tree.pmod:1.38
Rev: lib/modules/Protocols.pmod/Bittorrent.pmod/Torrent.pike:1.21
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Query.pike:1.64
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Port.pike:1.7
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike:1.17
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/SSLPort.pike:1.4
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:1.14
Rev: lib/modules/Protocols.pmod/IMAP.pmod/types.pmod:1.30
Rev: lib/modules/Protocols.pmod/IRC.pmod/Client.pike:1.11
Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.51
Rev: lib/modules/Protocols.pmod/LDAP.pmod/ldap_privates.pmod:1.7
Rev: lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:1.11
Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Connection.pike:1.11
Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Session.pike:1.33
Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike:1.8
Rev: lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:1.13
Rev: lib/modules/Protocols.pmod/TELNET.pmod:1.23
Rev: lib/modules/Protocols.pmod/X.pmod/Atom.pmod:1.13
Rev: lib/modules/Protocols.pmod/X.pmod/Auth.pmod:1.13
Rev: lib/modules/Protocols.pmod/X.pmod/Extensions.pmod:1.15
Rev: lib/modules/Protocols.pmod/X.pmod/Types.pmod:1.39
Rev: lib/modules/Protocols.pmod/X.pmod/XImage.pmod:1.21
Rev: lib/modules/Protocols.pmod/X.pmod/XTools.pmod:1.9
Rev: lib/modules/Protocols.pmod/X.pmod/Xlib.pmod:1.49
Rev: lib/modules/Remote.pmod/module.pmod:1.3
Rev: lib/modules/SSL.pmod/Cipher.pmod:1.7
Rev: lib/modules/SSL.pmod/connection.pike:1.31
Rev: lib/modules/SSL.pmod/handshake.pike:1.36
Rev: lib/modules/SSL.pmod/session.pike:1.28
Rev: lib/modules/SSL.pmod/sslport.pike:1.12
Rev: lib/modules/Standards.pmod/ASN1.pmod/Types.pmod:1.28
Rev: lib/modules/Standards.pmod/PKCS.pmod/PFX.pmod:1.9
Rev: lib/modules/Standards.pmod/URI.pike:1.17
Rev: lib/modules/Stdio.pmod/FakeFile.pike:1.8
Rev: lib/modules/Tools.pmod/Hilfe.pmod:1.108
Rev: lib/modules/Tools.pmod/Standalone.pmod/rsqld.pike:1.10
Rev: lib/modules/Tools.pmod/X509.pmod:1.21
Rev: lib/modules/Web.pmod/Crawler.pmod:1.19
Rev: lib/modules/Web.pmod/RDF.pike:1.29
Rev: lib/modules/Yabu.pmod/module.pmod:1.28
Rev: lib/modules/_Image_XCF.pmod:1.22

187:   // default autopromote    TimeRange autopromote()    { -  return this_object(); +  return this;    }       array(int(-1..1)) _compare(TimeRange with)
199:       if (with->is_timeofday_f)    { -  array(int(-1..1)) cmp=with->_compare(this_object()); +  array(int(-1..1)) cmp=with->_compare(this);       return ({-cmp[0],    -cmp[2],
248:       int m;    if ( (m=to->unix_time()-unix_time())<0) -  error("Negative distance %O .. %O\n", this_object(),to); +  error("Negative distance %O .. %O\n", this,to);       return    Second("timeofday_sd",rules,ux,m,ls,utco)
304:    return _move(n,step->number_of_seconds());       if (!base) make_base(); -  return base->add(n,step)->place(this_object(),1); +  return base->add(n,step)->place(this,1);    }      //! method Hour hour()
771:       string format_iso_time()    { -  return this_object()->format_iso_ymd()+" "+format_todz_iso(); +  return this->format_iso_ymd()+" "+format_todz_iso();    }       string format_ext_time()    { -  return this_object()->format_ext_ymd()+" "+format_tod(); +  return this->format_ext_ymd()+" "+format_tod();    }       string format_time()    { -  return this_object()->format_ymd()+" "+format_tod(); +  return this->format_ymd()+" "+format_tod();    }       string format_time_short()    { -  return this_object()->format_ymd_short()+" "+format_tod(); +  return this->format_ymd_short()+" "+format_tod();    }       string format_iso_short()    { -  return this_object()->format_ymd_short()+"T"+format_tod(); +  return this->format_ymd_short()+"T"+format_tod();    }       string format_time_xshort()    { -  return this_object()->format_ymd_xshort()+" "+format_tod(); +  return this->format_ymd_xshort()+" "+format_tod();    }       string format_mtime()    { -  return this_object()->format_ymd()+" "+format_mod(); +  return this->format_ymd()+" "+format_mod();    }       string format_xtime()    { -  return this_object()->format_ymd()+" "+format_xtod(); +  return this->format_ymd()+" "+format_xtod();    }       string format_ctime()
903:    string format_elapsed()    {    string res=""; -  object left=this_object(); +  object left=this;    int x; -  if ( (x=(this_object()/Day)) ) +  if ( (x=(this/Day)) )    {    res+=sprintf("%dd",x); -  left=this_object()->add(x,Day)->range(this_object()->end()); +  left=this->add(x,Day)->range(this->end());    }    return sprintf("%s%d:%02d:%02d",    res,left->len/3600,
991:    _ind+=IND; \    TimeRange x=::OP(@args); \    _ind=_ind[..sizeof(_ind)-sizeof(IND)-1]; \ -  werror(_ind+" %O\n",this_object()); \ +  werror(_ind+" %O\n",this); \    foreach (args,TimeRange t) werror(_ind+NAME+" %O\n",t); \    werror(_ind+"= %O\n",x); \    return x; \
1251:       TimeofDay _move(int n,int m)    { -  if (m==0 || n==0) return this_object(); +  if (m==0 || n==0) return this;    if (m%3600)    return Second("timeofday",rules,ux,len)->_move(n,m);    return Hour("timeofday",rules,ux+n*m,len)->autopromote();
1365:       TimeofDay _move(int n,int m)    { -  if (m==0 || n==0) return this_object(); +  if (m==0 || n==0) return this;    if (m%60) return Second("timeofday",rules,ux,len)->_move(n,m);    return Minute("timeofday",rules,ux+n*m,len)->autopromote();    }
1465:       TimeofDay _move(int n,int m)    { -  if (m==0 || n==0) return this_object(); +  if (m==0 || n==0) return this;    return Second("timeofday",rules,ux+n*m,len)->autopromote();    }   
1504:      // backwards compatible with calendar I    string iso_name() -  { return this_object()->format_ymd()+" T"+format_tod(); } +  { return this->format_ymd()+" T"+format_tod(); }    string iso_short_name() -  { return this_object()->format_ymd_short()+" T"+(format_tod()-":"); } +  { return this->format_ymd_short()+" T"+(format_tod()-":"); }          TimeRange place(TimeRange what,void|int force)
1596:    ls=CALUNKNOWN;       if (ns<0) -  error("Can't create negative ns: %O\n",this_object()); +  error("Can't create negative ns: %O\n",this);       if (!rules) error("no rules\n");   
1605:    len=len_s+(ns+len_ns+inano-1)/inano;       if (ns<0) -  error("Can't create negative ns: %O\n",this_object()); +  error("Can't create negative ns: %O\n",this);       return;    }
1767:    if (!ns && !len_ns)    return Second("timeofday",rules,ux,len_s)->autopromote();    -  return this_object(); +  return this;    }       TimeofDay set_ruleset(.Ruleset r)
1835:       if (s2<s1 ||    (s2==s1 && to->ns<ns)) -  error("Negative distance %O .. %O\n", this_object(),to); +  error("Negative distance %O .. %O\n", this,to);       return    Fraction("timeofday_f",rules,ux,ns,s2-s1-1,to->ns-ns+inano)
1871:       TimeofDay beginning()    { -  if (len_s==0.0 && len_ns==0.0) return this_object(); +  if (len_s==0.0 && len_ns==0.0) return this;    return Fraction("timeofday_f",rules,ux,ns,0,0)    ->autopromote();    }       TimeofDay end()    { -  if (len_s==0 && len_ns==0) return this_object(); +  if (len_s==0 && len_ns==0) return this;    object q=Fraction("timeofday_f",rules,ux+len_s,ns+len_ns,0,0)    ->autopromote();    return q;
1934:    if (to<from)    return ({});    -  if (from==0.0 && to==n) return ({this_object()}); +  if (from==0.0 && to==n) return ({this});       to-=from;    return ({Fraction("timeofday_f",rules,
1960:    string format_elapsed()    {    int x; -  if ( (x=(this_object()/Day)) ) +  if ( (x=(this/Day)) )    { -  object left=this_object()->add(x,Day)->range(this_object()->end()); +  object left=this->add(x,Day)->range(this->end());    return sprintf("%dd%d:%02d:%02d.%03d",    x,left->len_s/3600,    (left->len_s/60)%60,