pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:18:   #include "pike_error.h"   #include "operators.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "fsort.h"   #include "threads.h"   #include "stuff.h"   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.90 2002/04/15 08:41:52 grubba Exp $"); + RCSID("$Id: encode.c,v 1.91 2002/04/15 11:54:39 grubba Exp $");      /* #define ENCODE_DEBUG */      /* Use the old encoding method for programs. */   #define OLD_PIKE_ENCODE_PROGRAM      #ifdef ENCODE_DEBUG   /* Pass a nonzero integer as the third arg to encode_value,    * encode_value_canonic and decode_value to activate this debug. */   #define EDB(N,X) do if (data->debug>=N) {X;} while (0)
pike.git/src/encode.c:1106:    /* name */    str_sval.u.string = inh->name;    encode_value2(&str_sval, data);       /* prog */    ref_push_program(inh->prog);    encode_value2(Pike_sp-1, data);    pop_stack();       /* parent */ +  if (inh->parent) {    ref_push_object(inh->parent); -  +  } else { +  push_int(0); +  Pike_sp[-1].subtype = NUMBER_UNDEFINED; +  }    encode_value2(Pike_sp-1, data);    pop_stack();       /* parent_identifier */    code_number(inh->parent_identifier, data);       /* parent_offset */    code_number(inh->parent_offset, data);       d += inh->prog->num_identifier_references;
pike.git/src/encode.c:1143: Inside #if 0
   inh->prog->identifier_references[i].id_flags;    }    inherit_flags_change &= ~(ID_HIDDEN|ID_INHERITED);    code_number(inherit_flags_change);       /* name */    str_sval.u.string = inh->name;    encode_value2(&str_sval, data);       /* prog */ +  if (inh->prog) {    ref_push_program(inh->prog); -  +  } else { +  push_int(0); +  Pike_sp[-1].subtype = NUMBER_UNDEFINED; +  }    encode_value2(Pike_sp-1, data);    pop_stack();       /* parent */    ref_push_object(inh->parent);    encode_value2(Pike_sp-1, data);    pop_stack();       /* parent_identifier */    code_number(inh->parent_identifier);