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.177 2004/05/11 14:07:28 grubba Exp $ + || $Id: encode.c,v 1.178 2004/05/11 14:13:02 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:25:   #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.177 2004/05/11 14:07:28 grubba Exp $"); + RCSID("$Id: encode.c,v 1.178 2004/05/11 14:13:02 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:4096:    free( (char *) data);    return 0;    }       data->decoded=allocate_mapping(128);       init_supporter(& data->supporter,    (supporter_callback *) re_decode,    (void *)data);    -  decode_value2(data); -  +     low_do_decode (data);       return 1;   }      /* Compatibilidy decoder */      static unsigned char extract_char(char **v, ptrdiff_t *l)   {    if(!*l) Pike_error("Format error, not enough place for char.\n");
pike.git/src/encode.c:4251: Inside #if defined(ENCODE_DEBUG)
   BIT_VOID | BIT_OBJECT | BIT_ZERO,   #ifdef ENCODE_DEBUG    /* This argument is only an internal debug helper.    * It's intentionally not part of the function    * prototype, to keep the argument position free for    * other uses in the future. */    BIT_VOID | BIT_INT,   #endif    0);    - #ifdef ENCODE_DEBUG -  debug = args > 2 ? Pike_sp[2-args].u.integer : 0; - #endif /* ENCODE_DEBUG */ -  +     s = Pike_sp[-args].u.string;       switch (args) {    default:   #ifdef ENCODE_DEBUG    debug = Pike_sp[2-args].u.integer;    /* Fall through. */    case 2:   #endif    if (Pike_sp[1-args].type == T_OBJECT) {