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.220 2008/07/24 14:47:47 grubba Exp $ + || $Id: array.c,v 1.221 2008/07/24 15:30:56 grubba 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:1599: Inside #if 1
   INT32 tmp=0; /* Svalues needed so far. */    INT32 tmp2 = 0;    INT32 e2 = -1;       for(e=0;e<args;e++)    {    v=argp[e].u.array;    if(v->refs == 1 && v->malloced_size >= size)    {    if (((v->item - v->real_item) >= tmp) && -  ((v->item + size) <= (v->real_item + v->malloced_size))) { +  ((v->item + size - tmp) <= (v->real_item + v->malloced_size))) {    /* There's enough space before and after. */    debug_malloc_touch(v);    mark_free_svalue(argp + e);    for(tmp=e-1;tmp>=0;tmp--)    {    v2 = argp[tmp].u.array;    debug_malloc_touch(v2);    v->type_field |= v2->type_field;    assign_svalues_no_free(ITEM(v) - v2->size, ITEM(v2),    v2->size, v2->type_field);