pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3902:    pop_n_elems(args);    push_int(0);    }   }   /*! @endclass    */      /*! @decl void serialize(object o, @    *! function(string, type, mixed:void) serializer)    *! -  *! Call @[LFUN::_serialize()] in @[o]. +  *! Call @[lfun::_serialize()] in @[o].    *!    *! @seealso -  *! @[deserialize()], @[LFUN::_serialize()], +  *! @[deserialize()], @[lfun::_serialize()],    *! @[Serializable()->_serialize()]    */   PIKEFUN void serialize(object o,    function(string, type, mixed:void) serializer)    rawtype tFunc(tObj tFunc(tStr tType(tMix) tMix, tVoid), tVoid);   {    struct inherit *inh;    struct program *p;    ptrdiff_t fun;    if (!(p = o->prog)) {
pike.git/src/builtin.cmod:3930:    if ((fun = low_find_lfun(p, LFUN__SERIALIZE)) == -1) {    Pike_error("Serialization not supported by object.\n");    }    apply_low(o, fun + inh->identifier_level, args);   }      /*! @decl void deserialize(object o, @    *! function(string, type, @    *! function(mixed:void):void) deserializer)    *! -  *! Call @[LFUN::_deserialize()] in @[o]. +  *! Call @[lfun::_deserialize()] in @[o].    *!    *! @seealso -  *! @[serialize()], @[LFUN::_deserialize()], +  *! @[serialize()], @[lfun::_deserialize()],    *! @[Serializable()->_deserialize()]    */   PIKEFUN void deserialize(object o,    function(string, type,    function(mixed:void):void) deserializer)    rawtype tFunc(tObj tFunc(tStr tType(tMix) tFunc(tMix, tVoid), tVoid), tVoid);   {    struct inherit *inh;    struct program *p;    ptrdiff_t fun;