pike.git / src / array.c

version» Context lines:

pike.git/src/array.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: array.c,v 1.215 2008/07/13 15:18:29 grubba Exp $ + || $Id: array.c,v 1.216 2008/07/13 15:55:37 grubba Exp $   */      #include "global.h"   #include "svalue.h"   #include "array.h"   #include "object.h"   #include "las.h"   #include "stralloc.h"   #include "interpret.h"   #include "opcodes.h"
pike.git/src/array.c:2478:    /* FIXME: Don't throw apply errors from apply_svalue here. */    apply_svalue(ITEM(a)+e,args);    new_types |= 1 << Pike_sp[-1].type;    assign_svalue(ITEM(a)+e, &Pike_sp[-1]);    pop_stack();    }    a->type_field = new_types;   #ifdef PIKE_DEBUG    array_check_type_field(a);   #endif -  stack_pop_n_elems_keep_top(args); +     } else {    struct array *aa;    push_array(aa = allocate_array_no_init(0, a->size));    for (e=0; (e<a->size) && (e < aa->malloced_size); e++)    {    assign_svalues_no_free(Pike_sp, argp, args, BIT_MIXED);    Pike_sp+=args;    /* FIXME: Don't throw apply errors from apply_svalue here. */    apply_svalue(ITEM(a)+e,args);    new_types |= 1 << Pike_sp[-1].type;