pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:1422:   PMOD_EXPORT struct array *order_array(struct array *v, const INT32 *order)   {    reorder((char *)ITEM(v),v->size,sizeof(struct svalue),order);    return v;   }         /**    * Copy and reorganize an array.    */ - PMOD_EXPORT struct array *reorder_and_copy_array(struct array *v, INT32 *order) + PMOD_EXPORT struct array *reorder_and_copy_array(const struct array *v, const INT32 *order)   {    INT32 e;    struct array *ret;    ret=allocate_array_no_init(v->size, 0);    ret->type_field = v->type_field;       for(e=0;e<v->size;e++)    assign_svalue_no_free(ITEM(ret)+e, ITEM(v)+order[e]);       return ret;