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.133 2001/12/10 02:08:14 mast Exp $"); + RCSID("$Id: encode.c,v 1.134 2001/12/13 11:05:57 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 { debug_malloc_touch(data); if (data->debug>=N) {X;} } while (0)   #else   #define EDB(N,X) do { debug_malloc_touch(data); } while (0)   #endif
pike.git/src/encode.c:2778: Inside #if defined(PIKE_DEBUG)
   }   #ifdef PIKE_DEBUG    if (!d) {    fatal("Decode data fell off the stack!\n");    }   #endif /* PIKE_DEBUG */    }          delay=unlink_current_supporter(&data->supporter); -  call_dependants(& data->supporter); +  call_dependants(& data->supporter, 1);       if(delay)    {    debug_malloc_touch(data);    /* We have been delayed */    return;    }       free_mapping(data->decoded);   
pike.git/src/encode.c:2817:    free((char *)tmp);    }   #ifdef PIKE_THREADS    free_object(data->thread_id);   #endif       free( (char *) data);   }      /* Run pass2 */ - void re_decode(struct decode_data *data) + int re_decode(struct decode_data *data, int ignored)   {    ONERROR err;    SET_ONERROR(err, free_decode_data, data);    data->next = current_decode;    current_decode = data;       decode_value2(data);    -  CALL_AND_UNSET_ONERROR(err); +  UNSET_ONERROR(err);       free_decode_data(data); -  +  return 1;   }      static INT32 my_decode(struct pike_string *tmp,    struct object *codec   #ifdef ENCODE_DEBUG    , int debug   #endif    )   {    ONERROR err;
pike.git/src/encode.c:2908:    add_ref(Pike_interpreter.thread_id);   #endif       data->decoded=allocate_mapping(128);       current_decode = data;       SET_ONERROR(err, free_decode_data, data);       init_supporter(& data->supporter, -  ( void (*)(void*) )re_decode, +  (supporter_callback *) re_decode,    (void *)data);       decode_value2(data);       CALL_AND_UNSET_ONERROR(err);    return 1;   }      /* Compatibilidy decoder */