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.171 2004/09/27 21:26:13 mast Exp $ + || $Id: array.c,v 1.172 2004/09/27 21:47:49 nilsson 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:1187:       return ret;   }      /* Maybe I should have a 'clean' flag for this computation */   PMOD_EXPORT TYPE_FIELD array_fix_type_field(struct array *v)   {    int e;    TYPE_FIELD t;    -  t=0; -  +     if(v->flags & ARRAY_LVALUE)    {    v->type_field=BIT_MIXED|BIT_UNFINISHED;    return BIT_MIXED|BIT_UNFINISHED;    }    -  +  t=0; +     for(e=0; e<v->size; e++) {    check_svalue (ITEM(v) + e);    t |= 1 << ITEM(v)[e].type;    }      #ifdef PIKE_DEBUG    if(t & ~(v->type_field))    {    describe(v);    Pike_fatal("Type field out of order (old:0x%04x new:0x%04x)!\n",