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

1:   // - // $Id: Types.pmod,v 1.27 2003/01/28 22:58:56 nilsson Exp $ + // $Id: Types.pmod,v 1.28 2004/01/11 00:42:00 nilsson Exp $   //      //! Encodes various asn.1 objects according to the Distinguished
93:    mapping(int:program(Object)) types) {    return types;    } -  this_program init(mixed ... args) { return this_object(); } +  this_program init(mixed ... args) { return this; }       string to_base_128(int n) {    if (!n)
177:    error( "Non-object argument!\n" );    elements = [array(object)]args;    WERROR(sprintf("asn1_compound: %O\n", elements)); -  return this_object(); +  return this;    }       this_program begin_decode_constructed(string raw) {    WERROR(sprintf("asn1_compound[%s]->begin_decode_constructed\n",    type_name));    record_der_contents(raw); -  return this_object(); +  return this;    }       this_program decode_constructed_element(int i, object e) {
193:    if (i != sizeof(elements))    error("Unexpected index!\n");    elements += ({ e }); -  return this_object(); +  return this;    }       this_program end_decode_constructed(int length) {    if (length != sizeof(elements))    error("Invalid length!\n"); -  return this_object(); +  return this;    }       static string _sprintf(int t) {
225:       this_program init(string s) {    value = s; -  return this_object(); +  return this;    }       string der_encode() {
235:    this_program decode_primitive(string contents) {    record_der_contents(contents);    value = contents; -  return this_object(); +  return this;    }       static string _sprintf(int t) {
266:    //! value of object    int value;    -  this_program init(int x) { value = x; return this_object(); } +  this_program init(int x) { value = x; return this; }       string der_encode() { return build_der(value ? "\377" : "\0"); }   
278:    }    record_der_contents(contents);    value = contents[0]; -  return this_object(); +  return this;    }       static string _sprintf(int t) {
306:    this_object init(int|object n) {    value = Gmp.mpz(n);    WERROR(sprintf("i = %s\n", value->digits())); -  return this_object(); +  return this;    }       string der_encode() {
331:    value = Gmp.mpz(contents, 256);    if (contents[0] & 0x80) /* Negative */    value -= pow(256, sizeof(contents)); -  return this_object(); +  return this;    }       static string _sprintf(int t) {
366:       int unused = 0;    -  this_program init(string s) { value = s; return this_object(); } +  this_program init(string s) { value = s; return this; }       string der_encode() {    return build_der(sprintf("%c%s", unused, value));
396:    if (unused >= 8)    return 0;    value = contents[1..]; -  return this_object(); +  return this;    }       static string _sprintf(int t) {
433:       this_program decode_primitive(string contents) {    record_der_contents(contents); -  return !sizeof(contents) && this_object(); +  return !sizeof(contents) && this;    }      #ifdef COMPATIBILITY
457:    || (args[1] >= ( (args[0] < 2) ? 40 : 176) ))    error( "Invalid object identifier.\n" );    id = args; -  return this_object(); +  return this;    }       mixed _encode() { return id; }
466:    //! @fixme    //! document me!    this_program append(int ... args) { -  return object_program(this_object())(@id, @args); +  return this_program(@id, @args);    }       string der_encode() {
490:    } while(contents[index++] & 0x80);    id += ({ element });    } -  return this_object(); +  return this;    }       static string _sprintf(int t) {
505:       int `==(mixed other) {    return (objectp(other) && -  (object_program(this_object()) == object_program(other)) && +  (this_program == object_program(other)) &&    equal(id, [object]other->id));    }   }
539:    })    return 0;    -  return this_object(); +  return this;    }   }   
996:    foreach (parts[1..], string part)    value += (decode_comb[part[..1]] || DEC_ERR(part[..1])) + part[2..];    -  return this_object(); +  return this;    }      #undef ENC_ERR
1109:    this_program decode_primitive (string contents) {    record_der (contents);    value = unicode_to_string (contents); -  return this_object(); +  return this;    }   }   
1136:       this_program init(Object o) {    contents = o; -  return this_object(); +  return this;    }       string der_encode() {
1149:    if (i)    error("Unexpected index!\n");    contents = e; -  return this_object(); +  return this;    }       this_program end_decode_constructed(int length) {    if (length != 1)    error("length != 1!\n"); -  return this_object(); +  return this;    }       mapping(int:program(Object)) element_types(int i,