pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:18:   #include "cyclic.h"   #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"    - RCSID("$Id: array.c,v 1.107 2003/01/07 16:01:37 grubba Exp $"); + RCSID("$Id: array.c,v 1.108 2003/01/29 15:55:24 mast Exp $");      PMOD_EXPORT struct array empty_array=   {    1, /* Never free */   #ifdef PIKE_SECURITY    0,   #endif    &weak_empty_array, /* Next */    &weak_shrink_empty_array, /* previous (circular) */    0, /* Size = 0 */
pike.git/src/array.c:2113: 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)    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