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.213 2004/05/12 08:13:30 grubba Exp $ + || $Id: encode.c,v 1.214 2004/05/12 14:58:29 grubba 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:24:   #include "fsort.h"   #include "threads.h"   #include "stuff.h"   #include "version.h"   #include "bignum.h"   #include "pikecode.h"   #include "pike_types.h"   #include "opcodes.h"   #include "peep.h"    - RCSID("$Id: encode.c,v 1.213 2004/05/12 08:13:30 grubba Exp $"); + RCSID("$Id: encode.c,v 1.214 2004/05/12 14:58:29 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 { debug_malloc_touch(data); if (data->debug>=N) {X;} } while (0)
pike.git/src/encode.c:3465:    decode_number(PIKE_CONCAT(local_num_, NAME), data);   #include "program_areas.h"       /* Byte-code method */    decode_number(bytecode_method, data);    if (bytecode_method == PIKE_BYTECODE_PORTABLE) {    } else if (bytecode_method != PIKE_BYTECODE_METHOD) {    Pike_error("Unsupported byte-code method: %d\n", bytecode_method);    } else {    + #ifdef PIKE_PORTABLE_BYTECODE +  fprintf(stderr, "Warning: Decoding non-portable bytecode.\n"); + #endif /* PIKE_PORTABLE_BYTECODE */ +    #ifdef PIKE_USE_MACHINE_CODE    {    size_t csum;    /* Check the checksum of the instrs array. */    decode_number(csum, data);    if (csum != instrs_checksum) {    Pike_error("Bad instruction checksum: %d (expected %d)\n",    csum, instrs_checksum);    }    }