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

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.387 2006/06/08 11:37:01 mast Exp $ + // $Id: master.pike.in,v 1.388 2006/11/04 19:08:24 nilsson Exp $      #pike __REAL_VERSION__   //#pragma strict_types
734:    if (has_prefix(low_name, ".#")) return 0;    if (has_suffix(low_name, ".pike") ||    has_suffix(low_name, ".pmod")) { -  return fname[..sizeof(fname)-6]; +  return fname[..<5];    }    if (has_suffix(low_name, ".so")) { -  return fname[..sizeof(fname)-4]; +  return fname[..<3];    }    return 0;   }