Branch: Tag:

2008-05-30

2008-05-30 15:19:03 by Martin Stjernholm <mast@lysator.liu.se>

Make use of the new svalue init macros and global constant svalues for 0 and 1.

Rev: src/array.c:1.209
Rev: src/bignum.c:1.45
Rev: src/builtin_functions.c:1.669
Rev: src/code/ia32.c:1.48
Rev: src/encode.c:1.275
Rev: src/error.c:1.163
Rev: src/multiset.c:1.113
Rev: src/multiset.h:1.46
Rev: src/svalue.c:1.242

2:   || 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.208 2008/05/12 13:24:44 grubba Exp $ + || $Id: array.c,v 1.209 2008/05/30 15:19:02 mast Exp $   */      #include "global.h"
38:    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 +  {SVALUE_INIT_FREE},   };      /** The empty weak array. */
49:    PIKE_CONSTANT_MEMOBJ_INIT(1),    0, &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 +  {SVALUE_INIT_FREE},   };      struct array *first_array = &empty_array;