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.206 2003/12/11 17:16:58 grubba Exp $ + || $Id: encode.c,v 1.207 2003/12/15 20:28:05 nilsson 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.206 2003/12/11 17:16:58 grubba Exp $"); + RCSID("$Id: encode.c,v 1.207 2003/12/15 20:28:05 nilsson 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:4346:      /*! @decl inherit Codec    *!    *! The master object is used as a fallback codec by @[encode_value()]    *! and @[decode_value()] if no codec was given.    *!    *! It will also be used as a codec if @[decode_value()] encounters    *! old-style @[encode_value()]'ed data.    */    - /*! @endclass -  */ -  +    /*! @class Codec    *!    *! Codec objects are used by @[encode_value()] and @[decode_value()]    *! to encode and decode objects, functions and programs.    *!    *! @note    *! @[encode_value()] and @[decode_value()] will use the current    *! master object as fallback codec object if no codec was specified.    */   
pike.git/src/encode.c:4458:    *! @returns    *! Returns either zero or a placeholder object. A placeholder    *! object must be a clone of @[__null_program]. When the program is    *! finished, the placeholder object will be converted to a clone of    *! it. This is used for pike module objects.    */      /*! @endclass    */    + /*! @endclass +  */ +    static void rec_restore_value(char **v, ptrdiff_t *l)   {    ptrdiff_t t, i;       i = extract_int(v,l);    t = extract_int(v,l);    switch(i)    {    case TAG_INT:    push_int(DO_NOT_WARN(t));