pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3450:    /* 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; +  SET_SVAL_TYPE(tmp, PIKE_T_STRING);    for( i=0; i<THIS->ctx.num; i++ )    {    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 );    }    }