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.182 2003/06/05 16:01:26 mast Exp $ + || $Id: encode.c,v 1.183 2003/06/05 20:51:39 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.182 2003/06/05 16:01:26 mast Exp $"); + RCSID("$Id: encode.c,v 1.183 2003/06/05 20:51:39 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:3248:    EDB(2,fprintf(stderr, "%*sdecoding a delay encoded program: ",    data->depth, "");    print_svalue(stderr, delayed_enc_val);    fputc('\n', stderr););    if (delayed_enc_val->type != T_PROGRAM ||    delayed_enc_val->u.program->flags != PROGRAM_VIRGIN) {    decode_error (NULL, delayed_enc_val,    "Didn't get program embryo "    "for delay encoded program <%d>: ", entry_id.u.integer);    } -  add_ref (p = delayed_enc_val->u.program); +  /* No new ref here; low_start_new_program will add one for +  * Pike_compiler->new_program and we want ride on that one +  * just like when it's created there. */ +  p = delayed_enc_val->u.program;    }    else    p = NULL;       /* Start the new program. */    orig_compilation_depth = compilation_depth;    compilation_depth = -1;    low_start_new_program(p, 1, NULL, 0, NULL);    p = Pike_compiler->new_program;