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.161 2004/08/19 23:02:29 nilsson Exp $ + || $Id: array.c,v 1.162 2004/08/20 01:39:03 nilsson 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:18:   #include "fsort.h"   #include "builtin_functions.h"   #include "pike_memory.h"   #include "gc.h"   #include "main.h"   #include "pike_security.h"   #include "stuff.h"   #include "bignum.h"   #include "cyclic.h"   #include "multiset.h" + #include "mapping.h"    - RCSID("$Id: array.c,v 1.161 2004/08/19 23:02:29 nilsson Exp $"); + RCSID("$Id: array.c,v 1.162 2004/08/20 01:39:03 nilsson Exp $");      PMOD_EXPORT struct array empty_array=   {    PIKE_CONSTANT_MEMOBJ_INIT(1), /* Never free */    &weak_empty_array, /* Next */    0, /* previous */    0, /* Size = 0 */    0, /* malloced Size = 0 */    0, /* no types */    0, /* no flags */
pike.git/src/array.c:2110:   #endif       ret=allocate_array_no_init(a->size,0);       aa.type = T_ARRAY;    aa.subtype = 0;    aa.u.array = a;    bb.type = T_ARRAY;    bb.subtype = 0;    bb.u.array = ret; -  low_mapping_insert(m, &aa, &bb); +  low_mapping_insert(m, &aa, &bb, 1);       ret->flags = a->flags & ~ARRAY_LVALUE;       copy_svalues_recursively_no_free(ITEM(ret),ITEM(a),a->size,m);       ret->type_field=a->type_field;    return ret;   }      PMOD_EXPORT void apply_array(struct array *a, INT32 args)