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.293 2010/02/11 17:03:08 grubba Exp $ + || $Id: encode.c,v 1.294 2010/07/01 11:25:18 grubba 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:3565:   #endif       if(placeholder && data->pass == 1)    {    if(placeholder->storage)    {    ref_push_program (p);    decode_error(Pike_sp - 1, NULL, "Placeholder already has storage!\n");    } else {    placeholder->storage=p->storage_needed ? -  (char *)xalloc(p->storage_needed) : +  (char *)xcalloc(p->storage_needed, 1) :    (char *)NULL;    call_c_initializers(placeholder);    }    }       data->pickyness--;       if(placeholder)    {    free_object(placeholder);
pike.git/src/encode.c:4674:    data->depth, "", p->flags));       if (placeholder) {    if (placeholder->prog != null_program) {    Pike_error("Placeholder has been zapped during decoding.\n");    }    debug_malloc_touch(placeholder);    free_program(placeholder->prog);    add_ref(placeholder->prog = p);    placeholder->storage = p->storage_needed ? -  (char *)xalloc(p->storage_needed) : +  (char *)xcalloc(p->storage_needed, 1) :    (char *)NULL;    call_c_initializers(placeholder);    if (!data->delay_counter) {    call_pike_initializers(placeholder, 0);    } else {    /* It's not safe to call __INIT() or create() yet, since    * there are delayed programs left.    */    struct unfinished_obj_link *up =    ALLOC_STRUCT(unfinished_obj_link);