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.193 2006/07/05 20:49:17 mast Exp $ + || $Id: array.c,v 1.194 2006/08/06 14:28:16 mast 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:401:    (v->size-index) * sizeof(struct svalue));    ITEM(v)[index].type=T_INT;   #ifdef __CHECKER__    ITEM(v)[index].subtype=0;    ITEM(v)[index].u.refs=0;   #endif    v->size++;    }else{    struct array *ret;    -  ret = array_set_flags(allocate_array_no_init(v->size+1, (v->size >> 3) + 1), +  ret = array_set_flags(allocate_array_no_init(v->size+1, v->size),    v->flags);    ret->type_field = v->type_field;       MEMCPY(ITEM(ret), ITEM(v), sizeof(struct svalue) * index);    MEMCPY(ITEM(ret)+index+1, ITEM(v)+index, sizeof(struct svalue) * (v->size-index));    ITEM(ret)[index].type=T_INT;   #ifdef __CHECKER__    ITEM(ret)[index].subtype=0;    ITEM(ret)[index].u.refs=0;   #endif