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.127 2001/08/15 12:00:47 mirar Exp $"); + RCSID("$Id: encode.c,v 1.128 2001/09/09 05:19:36 hubbe 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:2633:    data->len=tmp->len;    data->ptr=0;    data->codec=codec;    data->pickyness=0;    data->unfinished_programs=0;    data->unfinished_objects=0;    data->raw = tmp;    data->next = current_decode;   #ifdef PIKE_THREADS    data->thread_id = Pike_interpreter.thread_id; -  add_ref(Pike_interpreter.thread_id); +    #endif   #ifdef ENCODE_DEBUG    data->debug = debug;    data->depth = -2;   #endif       if (tmp->size_shift) return 0;    if(data->len < 5) return 0;    if(GETC() != 182 ||    GETC() != 'k' ||    GETC() != 'e' ||    GETC() != '0')    return 0;    -  + #ifdef PIKE_THREADS +  add_ref(Pike_interpreter.thread_id); + #endif +     data->decoded=allocate_mapping(128);       current_decode = data;       SET_ONERROR(err, free_decode_data, data);    decode_value2(data);      #ifdef PIKE_DEBUG    if(data->unfinished_programs)    fatal("We have unfinished programs left in decode()!\n");