Branch: Tag:

2014-09-13

2014-09-13 22:27:05 by Martin Nilsson <nilsson@opera.com>

Fixed the decoder callback prototype and the Sequence decode_primitive (is this every called?)

87:       // Should be overridden by subclasses    this_program decode_primitive(string contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object) decoder,    mapping(int:program(Object)) types);
258:    }       this_program decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {
314:    }       this_program decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {
377:    }       this_object decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {
440:    }       this_object decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object) decoder,    mapping(int:program(Object))|void types) {
567:    }       this_program decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {
641:    string(0..255) get_der_content() { return ""; }       this_program decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {
695:    }       this_program decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {
799:    }       this_program decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {
829:    }       this_program decode_primitive(string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object) decoder,    mapping(int:program(Object)) types) {    der = contents;    elements = ({}); -  ADT.struct struct = ADT.struct(contents); -  while (!struct->is_empty()) { -  elements += ({ decoder(struct, types) }); +  Stdio.IOBuffer data = Stdio.IOBuffer(contents); +  while (sizeof(data)) { +  elements += ({ decoder(data, types) });    }    return this;    }
1035:    }       this_program decode_primitive (string contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {
1066:    }       this_program decode_primitive (string(0..255) contents, -  function(ADT.struct, +  function(Stdio.IOBuffer,    mapping(int:program(Object)):    Object)|void decoder,    mapping(int:program(Object))|void types) {