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.232 2005/06/01 09:06:59 grubba Exp $ + || $Id: encode.c,v 1.233 2005/11/19 22:40:28 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"    - /* #define ENCODE_DEBUG */ + #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)   #ifndef PIKE_DEBUG   #error ENCODE_DEBUG requires PIKE_DEBUG
pike.git/src/encode.c:1426:       /* func_flags (aka identifier_flags) */    code_number(id->identifier_flags, data);       /* func */   #ifdef PIKE_PORTABLE_BYTECODE    if (id->func.offset >= 0) {    /* Code the number of the string containing    * the raw bytecode.    */ -  code_number(((INT32 *)(p->program+id->func.offset))[-1], +  code_number(read_data(p->program + id->func_offset, -1),    data);    } else {    /* Prototype */    code_number(-1, data);    }   #else /* !PIKE_PORTABLE_BYTECODE */    code_number(id->func.offset, data);   #endif /* PIKE_PORTABLE_BYTECODE */       /* opt_flags */