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.191 2003/07/01 15:08:29 mast Exp $ + || $Id: encode.c,v 1.192 2003/07/30 18:52:15 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.191 2003/07/01 15:08:29 mast Exp $"); + RCSID("$Id: encode.c,v 1.192 2003/07/30 18:52:15 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:2439:    }       debug_malloc_touch(o);    pop_stack();    push_object(o);       if(o->prog)    {    if(o->prog->flags & PROGRAM_FINISHED)    { -  apply_lfun(o, LFUN___INIT, 0); +  int lfun = FIND_LFUN(o->prog, LFUN___INIT); +  if (lfun >= 0) { +  apply_low(o, lfun, 0);    pop_stack(); -  +  }    /* FIXME: Should call LFUN_CREATE here in <= 7.2    * compatibility mode. */    }else{    struct unfinished_obj_link *ol=ALLOC_STRUCT(unfinished_obj_link);    ol->o=o;    ol->next=data->unfinished_objects;    data->unfinished_objects=ol;    }    }