pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:17:   #include "dynamic_buffer.h"   #include "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"    - RCSID("$Id: encode.c,v 1.36 1999/09/18 09:20:44 hubbe Exp $"); + RCSID("$Id: encode.c,v 1.37 1999/09/19 22:58:20 hubbe Exp $");      #ifdef _AIX   #include <net/nh.h>   #endif      #ifdef HAVE_NETINET_IN_H   #include <netinet/in.h>   #endif      #include <math.h>
pike.git/src/encode.c:1111:    decode_number(p->identifier_references[d].identifier_offset,data);    decode_number(p->identifier_references[d].id_flags,data);    }       for(d=0;d<p->num_strings;d++)    getdata(p->strings[d]);       debug_malloc_touch(dat);       data->pickyness++; +  +    /* p->inherits[0].prog=p;    p->inherits[0].parent_offset=1;   */       for(d=0;d<p->num_inherits;d++)    {    decode_number(p->inherits[d].inherit_level,data);    decode_number(p->inherits[d].identifier_level,data);    decode_number(p->inherits[d].parent_offset,data);    decode_number(p->inherits[d].storage_offset,data);       decode_value2(data); -  +  if(d==0) +  { +  if(sp[-1].type != T_PROGRAM || +  sp[-1].u.program != p) +  error("Program decode failed!\n"); +  p->refs--; +  } +     switch(sp[-1].type)    {    case T_FUNCTION:    if(sp[-1].subtype == FUNCTION_BUILTIN)    error("Failed to decode parent.\n");       p->inherits[d].parent_identifier=sp[-1].subtype;    p->inherits[d].prog=program_from_svalue(sp-1);    if(!p->inherits[d].prog)    error("Failed to decode parent.\n");