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.154 2004/03/15 22:23:14 mast Exp $ + || $Id: array.c,v 1.155 2004/03/15 22:47:15 mast 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:19:   #include "builtin_functions.h"   #include "pike_memory.h"   #include "gc.h"   #include "main.h"   #include "security.h"   #include "stuff.h"   #include "bignum.h"   #include "cyclic.h"   #include "multiset.h"    - RCSID("$Id: array.c,v 1.154 2004/03/15 22:23:14 mast Exp $"); + RCSID("$Id: array.c,v 1.155 2004/03/15 22:47:15 mast 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:2343:    gc_assert_checked_as_nonweak(a);    }    }    } GC_LEAVE;   }      void real_gc_cycle_check_array(struct array *a, int weak)   {    GC_CYCLE_ENTER(a, T_ARRAY, weak) {   #ifdef PIKE_DEBUG -  if (a == &empty_array || a == &weak_empty_array || a == &weak_shrink_empty_array) +  if (!gc_destruct_everything && +  (a == &empty_array || a == &weak_empty_array || a == &weak_shrink_empty_array))    Pike_fatal("Trying to gc cycle check some *_empty_array.\n");   #endif       if (a->type_field & BIT_COMPLEX)    {    TYPE_FIELD t = a->flags & ARRAY_WEAK_FLAG ?    gc_cycle_check_weak_svalues(ITEM(a), a->size) :    gc_cycle_check_svalues(ITEM(a), a->size);    if (t) {    /* In the weak case we should only get here if references to