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.212 2008/07/04 15:50:46 mast Exp $ + || $Id: array.c,v 1.213 2008/07/08 17:16:41 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:2522:    *(tmp0++) = *(--tmp1);    *tmp1 = swap;    }       /* FIXME: What about the flags field? */       add_ref(a);    return a;    }    -  // fprintf(stderr, "R"); +  /* fprintf(stderr, "R"); */       ret=allocate_array_no_init(a->size,0);    for(e=0;e<start;e++)    assign_svalue_no_free(ITEM(ret)+e,ITEM(a)+e);    for(;e<end;e++)    assign_svalue_no_free(ITEM(ret)+e,ITEM(a)+end+~e-start);    for(;e<a->size;e++)    assign_svalue_no_free(ITEM(ret)+e,ITEM(a)+e);    ret->type_field = a->type_field;    return ret;