pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: encode.c,v 1.228 2005/05/19 22:35:26 mast Exp $ + || $Id: encode.c,v 1.229 2005/05/27 18:34:23 mast Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"
pike.git/src/encode.c:1015: Inside #if defined(OLD_PIKE_ENCODE_PROGRAM)
     #ifdef OLD_PIKE_ENCODE_PROGRAM       EDB(1,    fprintf(stderr, "%*sencode: encoding program in old style\n",    data->depth, ""));       /* Type 1 -- Old-style encoding. */       code_entry(TAG_PROGRAM, 1, data); -  f_version(0); +  push_compact_version();    encode_value2(Pike_sp-1,data, 0);    pop_stack();    code_number(p->flags,data);    code_number(p->storage_needed,data);    code_number(p->xstorage,data); /**/    code_number(p->parent_info_storage,data); /**/       code_number(p->alignment_needed,data);    code_number(p->timestamp.tv_sec,data);    code_number(p->timestamp.tv_usec,data);
pike.git/src/encode.c:1167:    data->depth, ""));    code_entry(TAG_PROGRAM, 4, data);       /* Byte-order. */    code_number(PIKE_BYTEORDER, data);       /* flags */    code_number(p->flags,data);       /* version */ -  f_version(0); +  push_compact_version();    encode_value2(Pike_sp-1, data, 0);    pop_stack();       /* parent */    if (p->parent) {    ref_push_program(p->parent);    } else {    push_int(0);    }    encode_value2(Pike_sp-1, data, 0);
pike.git/src/encode.c:2838:    "from __register_new_program.\n");    else {    pop_stack();    }    }       if(placeholder)    SET_ONERROR(err4, zap_placeholder, placeholder);       decode_value2(data); -  f_version(0); +  push_compact_version();    if(!is_eq(Pike_sp-1,Pike_sp-2))    Pike_error("Cannot decode programs encoded with other pike version.\n");    pop_n_elems(2);       data->pickyness++;       debug_malloc_touch(p);    decode_number(p->flags,data);       if(data->pass == 1)
pike.git/src/encode.c:3491:    data->depth, "", entry_id.u.integer);    print_svalue(stderr, &prog);    fputc('\n', stderr););    mapping_insert(data->decoded, &entry_id, &prog);    }       debug_malloc_touch(p);       /* Check the version. */    decode_value2(data); -  f_version(0); +  push_compact_version();    if(!is_eq(Pike_sp-1,Pike_sp-2))    Pike_error("Cannot decode programs encoded with other pike version.\n");    pop_n_elems(2);       debug_malloc_touch(p);       data->pickyness++;       /* parent */    decode_value2(data);