pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:16:   #include "pike_types.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.114 2001/06/30 18:44:21 hubbe Exp $"); + RCSID("$Id: array.c,v 1.115 2001/07/01 21:34:50 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 */    empty_array.real_item, /* Initialize the item pointer. */ -  + #ifdef HAVE_UNION_INIT +  {{0, 0, {0}}}, /* Only to avoid warnings. */ + #endif   };   PMOD_EXPORT struct array weak_empty_array=   {    PIKE_CONSTANT_MEMOBJ_INIT(1),    &weak_shrink_empty_array, &empty_array, 0, 0, 0, ARRAY_WEAK_FLAG,    weak_empty_array.real_item, -  + #ifdef HAVE_UNION_INIT +  {{0, 0, {0}}}, /* Only to avoid warnings. */ + #endif   };   PMOD_EXPORT struct array weak_shrink_empty_array=   {    PIKE_CONSTANT_MEMOBJ_INIT(1),    &empty_array, &weak_empty_array, 0, 0, 0, ARRAY_WEAK_FLAG|ARRAY_WEAK_SHRINK,    weak_shrink_empty_array.real_item, -  + #ifdef HAVE_UNION_INIT +  {{0, 0, {0}}}, /* Only to avoid warnings. */ + #endif   };      struct array *gc_internal_array = &empty_array;   static struct array *gc_mark_array_pos = 0;         /* Allocate an array, this might be changed in the future to    * allocate linked lists or something    * NOTE: the new array have zero references    */