pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:18:   #include "pike_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"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.111 2001/07/15 21:16:04 hubbe Exp $"); + RCSID("$Id: encode.c,v 1.112 2001/07/15 21:45:31 mast Exp $");      /* #define ENCODE_DEBUG */      #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 if (data->debug>=N) {X;} while (0)   #else   #define EDB(N,X) do {} while (0)   #endif
pike.git/src/encode.c:1143:         struct unfinished_prog_link   {    struct unfinished_prog_link *next;    struct program *prog;   };      struct unfinished_obj_link   { -  struct unfinished_prog_link *next; +  struct unfinished_obj_link *next;    struct object *o;   };      struct decode_data   {    unsigned char *data;    ptrdiff_t len;    ptrdiff_t ptr;    struct mapping *decoded;    struct unfinished_prog_link *unfinished_programs;
pike.git/src/encode.c:1855:    break;       default:    Pike_error("Object coding not compatible.\n");    break;    }    if(Pike_sp[-1].type != T_OBJECT)    if(data->pickyness)    Pike_error("Failed to decode object.\n");    - #ifdef ENCODE_DEBUG -  data->depth -= 2; - #endif +     break;    }       case TAG_FUNCTION:    tmp=data->counter;    data->counter.u.integer++;    decode_value2(data);       switch(num)    {