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.183 2003/06/05 20:51:39 mast Exp $ + || $Id: encode.c,v 1.184 2003/06/05 21:53:18 mast 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:20:   #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"   #include "pikecode.h"    - RCSID("$Id: encode.c,v 1.183 2003/06/05 20:51:39 mast Exp $"); + RCSID("$Id: encode.c,v 1.184 2003/06/05 21:53:18 mast 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:1618:    addstr("\266ke0", 4);       encode_value2(Pike_sp-args, data, 1);       for (i = 0; i < data->delayed->size; i++)    encode_value2 (ITEM(data->delayed) + i, data, 2);       UNSET_ONERROR(tmp);       free_mapping(data->encoded); +  free_array (data->delayed);       pop_n_elems(args);    push_string(low_free_buf(&data->buf));   }      /*! @decl string encode_value_canonic(mixed value, object|void codec)    *!    *! Code a value into a string on canonical form.    *!    *! Takes a value and converts it to a string on canonical form, much like
pike.git/src/encode.c:1696:    addstr("\266ke0", 4);       encode_value2(Pike_sp-args, data, 1);       for (i = 0; i < data->delayed->size; i++)    encode_value2 (ITEM(data->delayed) + i, data, 2);       UNSET_ONERROR(tmp);       free_mapping(data->encoded); +  free_array (data->delayed);       pop_n_elems(args);    push_string(low_free_buf(&data->buf));   }         struct unfinished_prog_link   {    struct unfinished_prog_link *next;    struct program *prog;