Branch: Tag:

2001-04-15

2001-04-15 16:13:18 by Martin Stjernholm <mast@lysator.liu.se>

Fixed constant struct inits so that they don't get wrong when
PIKE_MEMORY_OBJECT_MEMBERS expands to more than one member.

Rev: src/array.c:1.104
Rev: src/mapping.c:1.121
Rev: src/svalue.h:1.88

23:   #include "stuff.h"   #include "bignum.h"    - RCSID("$Id: array.c,v 1.103 2001/04/07 07:38:23 hubbe Exp $"); + RCSID("$Id: array.c,v 1.104 2001/04/15 16:13:17 mast Exp $");      PMOD_EXPORT struct array empty_array=   { -  1, /* Never free */ - #ifdef PIKE_SECURITY -  0, - #endif - #ifdef USE_LOCAL_MUTEX -  PTHREAD_MUTEX_INITIALIZER, - #endif +  PIKE_CONSTANT_MEMOBJ_INIT(1), /* Never free */    &empty_array, /* Next */    &empty_array, /* previous (circular) */    0, /* Size = 0 */