pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3389:    CVAR struct replace_many_context ctx;    /* NOTE: from and to are only kept for _encode()'s use. */    PIKEVAR array from flags ID_PROTECTED;    PIKEVAR array to flags ID_PROTECTED;       PIKEFUN int _size_object()    {    int res = 0, i;    if( THIS->ctx.v )    { +  struct svalue tmp; +  tmp.type = PIKE_T_STRING;    for( i=0; i<THIS->ctx.num; i++ ) -  res += sizeof(struct replace_many_tupel) + -  rec_size_svalue(THIS->ctx.v[i].ind,NULL) + -  rec_size_svalue(THIS->ctx.v[i].val,NULL); +  { +  res += sizeof(struct replace_many_tupel); +  tmp.u.string = THIS->ctx.v[i].ind; +  res += rec_size_svalue( &tmp, NULL ); +  tmp.u.string = THIS->ctx.v[i].val; +  res += rec_size_svalue( &tmp, NULL );    } -  +  }       RETURN res;    }       /*! @decl void create(array(string)|mapping(string:string)|void from, @    *! array(string)|string|void to)    */    PIKEFUN void create(array(string)|mapping(string:string)|void from_arg,    array(string)|string|void to_arg)    {