Branch: Tag:

2008-01-29

2008-01-29 20:10:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

reverse() now supports reversals of sub-ranges.

Rev: src/array.c:1.199
Rev: src/array.h:1.72
Rev: src/builtin_functions.c:1.651

2:   || 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.h,v 1.71 2008/01/26 22:34:17 mast Exp $ + || $Id: array.h,v 1.72 2008/01/29 20:10:06 grubba Exp $   */      #ifndef ARRAY_H
184:   PMOD_EXPORT struct array *copy_array_recursively(struct array *a,    struct mapping *p);   PMOD_EXPORT void apply_array(struct array *a, INT32 args); - PMOD_EXPORT struct array *reverse_array(struct array *a); + PMOD_EXPORT struct array *reverse_array(struct array *a, int start, int end);   void array_replace(struct array *a,    struct svalue *from,    struct svalue *to);