Branch: Tag:

2003-04-28

2003-04-28 18:32:38 by Martin Stjernholm <mast@lysator.liu.se>

array_column can't always be destructive on its argument, even when it has
only one ref.

Rev: src/array.c:1.146
Rev: src/array.h:1.52
Rev: src/builtin.cmod:1.135
Rev: src/testsuite.in:1.638

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.51 2003/04/28 00:40:49 mast Exp $ + || $Id: array.h,v 1.52 2003/04/28 18:32:38 mast Exp $   */      #ifndef ARRAY_H
96:   PMOD_EXPORT void do_free_array(struct array *a);   PMOD_EXPORT struct array *array_set_flags(struct array *a, int flags);   PMOD_EXPORT void array_index(struct svalue *s,struct array *v,INT32 ind); - PMOD_EXPORT struct array *array_column (struct array *data, struct svalue *index); + PMOD_EXPORT struct array *array_column (struct array *data, struct svalue *index, +  int destructive);   PMOD_EXPORT void simple_array_index_no_free(struct svalue *s,    struct array *a,struct svalue *ind);   PMOD_EXPORT void array_free_index(struct array *v,INT32 ind);