Branch: Tag:

2006-11-04

2006-11-04 19:08:24 by Martin Nilsson <mani@lysator.liu.se>

Use new ..<x indexing.

Rev: lib/master.pike.in:1.388
Rev: lib/modules/Array.pmod:1.104
Rev: lib/modules/Calendar.pmod/Time.pmod:1.36
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.34
Rev: lib/modules/Calendar.pmod/YMD.pike:1.19
Rev: lib/modules/Calendar.pmod/mkrules.pike:1.11
Rev: lib/modules/Crypto.pmod/DSA.pike:1.6
Rev: lib/modules/Crypto.pmod/PGP.pmod:1.13
Rev: lib/modules/Debug.pmod/Subject.pike:1.8
Rev: lib/modules/Filesystem.pmod/System.pike:1.18
Rev: lib/modules/Filesystem.pmod/Tar.pmod:1.29
Rev: lib/modules/GTKSupport.pmod/MenuFactory.pmod:1.11
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_graph.pike:1.15
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:1.14
Rev: lib/modules/Local.pmod:1.8
Rev: lib/modules/Locale.pmod/Charset.pmod/module.pmod:1.52
Rev: lib/modules/Locale.pmod/Language.pmod/ita.pmod:1.2
Rev: lib/modules/MIME.pmod/module.pmod:1.14
Rev: lib/modules/Parser.pmod/C.pmod:1.47
Rev: lib/modules/Parser.pmod/RCS.pike:1.35
Rev: lib/modules/Parser.pmod/XML.pmod/DOM.pmod:1.13
Rev: lib/modules/Parser.pmod/XML.pmod/Tree.pmod:1.67
Rev: lib/modules/Parser.pmod/XML.pmod/Validating.pike:1.13
Rev: lib/modules/Protocols.pmod/Bittorrent.pmod/Generator.pike:1.10
Rev: lib/modules/Protocols.pmod/DNS.pmod:1.88
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike:1.46
Rev: lib/modules/Protocols.pmod/IMAP.pmod/parse_line.pike:1.27
Rev: lib/modules/Protocols.pmod/IRC.pmod/Error.pmod:1.5
Rev: lib/modules/Protocols.pmod/IRC.pmod/Raw.pike:1.8
Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.102
Rev: lib/modules/Protocols.pmod/LDAP.pmod/module.pmod:1.25
Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Helper.pmod:1.9
Rev: lib/modules/Protocols.pmod/OBEX.pmod:1.6
Rev: lib/modules/Protocols.pmod/TELNET.pmod:1.26
Rev: lib/modules/Remote.pmod/module.pmod:1.6
Rev: lib/modules/SSL.pmod/state.pike:1.29
Rev: lib/modules/Sql.pmod/Sql.pike:1.88
Rev: lib/modules/Sql.pmod/mysql.pike:1.33
Rev: lib/modules/Sql.pmod/rsql.pike:1.11
Rev: lib/modules/Sql.pmod/tds.pike:1.21
Rev: lib/modules/Standards.pmod/ASN1.pmod/Types.pmod:1.38
Rev: lib/modules/Standards.pmod/ID3.pmod:1.21
Rev: lib/modules/Standards.pmod/IDNA.pmod:1.8
Rev: lib/modules/Standards.pmod/URI.pike:1.25
Rev: lib/modules/Standards.pmod/XML.pmod/Wix.pmod:1.25
Rev: lib/modules/Stdio.pmod/Readline.pike:1.59
Rev: lib/modules/Stdio.pmod/module.pmod:1.225
Rev: lib/modules/String.pmod/module.pmod:1.26
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/MirarDocParser.pike:1.26
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/ProcessXML.pmod:1.65

1027:    { \    _ind+=IND; \    TimeRange x=::OP(@args); \ -  _ind=_ind[..sizeof(_ind)-sizeof(IND)-1]; \ +  _ind=_ind[..<sizeof(IND)]; \    werror(_ind+" %O\n",this); \    foreach (args,TimeRange t) werror(_ind+NAME+" %O\n",t); \    werror(_ind+"= %O\n",x); \
1115:    int from=0,to=0x7fffffff,pos=0;    array res=({});    TimeRange last=0; -  string ums=unit[..sizeof(unit)-2]; // no 's' +  string ums=unit[..<1]; // no 's'       if (sizeof(range)==2)    [from,to]=range;
1151:    {    int pos=0;    TimeRange last=0; -  string ums=unit[..sizeof(unit)-2]; // no 's' +  string ums=unit[..<1]; // no 's'       foreach (parts,TimeRange part)    {
1673:    return;    case "unix_r":    rules=args[-1]; -  create_unixtime(@args[..sizeof(args)-2]); +  create_unixtime(@args[..<1]);    return;    case "julian_r":    rules=args[2];