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.133 2002/12/01 00:16:54 mast Exp $ + || $Id: array.c,v 1.134 2003/02/01 15:37:22 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:18:   #include "fsort.h"   #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"    - RCSID("$Id: array.c,v 1.133 2002/12/01 00:16:54 mast Exp $"); + RCSID("$Id: array.c,v 1.134 2003/02/01 15:37:22 mast Exp $");      PMOD_EXPORT struct array empty_array=   {    PIKE_CONSTANT_MEMOBJ_INIT(1), /* Never free */    &weak_empty_array, /* Next */    &weak_shrink_empty_array, /* previous (circular) */    0, /* Size = 0 */    0, /* malloced Size = 0 */    0, /* no types */    0, /* no flags */
pike.git/src/array.c:2169: Inside #if defined(PIKE_DEBUG)
  #ifdef PIKE_DEBUG    if (a->flags & ARRAY_WEAK_FLAG)    gc_assert_checked_as_weak(a);    else    gc_assert_checked_as_nonweak(a);   #endif    }    } GC_CYCLE_LEAVE;   }    - #ifdef PIKE_DEBUG +    unsigned gc_touch_all_arrays(void)   {    unsigned n = 0;    struct array *a = &empty_array;    do {    debug_gc_touch(a);    n++;    if (!a->next || a->next->prev != a)    Pike_fatal("Error in array link list.\n");    a=a->next;    } while (a != &empty_array);    return n;   } - #endif +       void gc_check_all_arrays(void)   {    struct array *a;    a=&empty_array;    do    {   #ifdef PIKE_DEBUG    if(d_flag > 1) array_check_type_field(a);   #endif