pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:509:    entry_id.u.integer = CONVERT_ENTRY_ID (entry_id.u.integer);    if (force_encode && tmp->u.integer < COUNTER_START) {    EDB(1,    fprintf(stderr, "%*sEncoding delayed thing to <%d>: ",    data->depth, "", entry_id.u.integer);    if(data->debug == 1)    {    fprintf(stderr,"TAG%d", TYPEOF(*val));    }else{    print_svalue(stderr, val); -  +     }    fputc('\n', stderr););    code_entry (TAG_DELAYED, entry_id.u.integer, data);    tmp->u.integer = entry_id.u.integer;    }    else {    EDB(1,fprintf(stderr, "%*sEncoding TAG_AGAIN from <%d>\n",    data->depth, "", entry_id.u.integer));    code_entry(TAG_AGAIN, entry_id.u.integer, data);    goto encode_done;
pike.git/src/encode.c:537:    entry_id = data->counter; /* It's always a small integer. */    EDB(1,fprintf(stderr, "%*sEncoding to <%d>: ",    data->depth, "", entry_id.u.integer);    if(data->debug == 1)    {    fprintf(stderr,"TAG%d", TYPEOF(*val));    }else{    print_svalue(stderr, val);    }    fputc('\n', stderr);); +  if( TYPEOF(*val) < MIN_REF_TYPE || val->u.dummy->refs > 1 )    mapping_insert(data->encoded, val, &entry_id);    data->counter.u.integer++;    }    }       switch(TYPEOF(*val))    {    case T_INT:    /* NOTE: Doesn't encode NUMBER_UNDEFINED et al. */    /* But that's a feature; NUMBER_UNDEFINED is an inherently