Branch: Tag:

2003-09-05

2003-09-05 15:19:20 by Martin Stjernholm <mast@lysator.liu.se>

Changed foreach to step the iterator after the loop instead of before it, so
that the iterator points to the current element instead of the next one.
Also some cleanup in iterators.cmod and a bit better error checking in
get_iterator.

Rev: src/builtin_functions.h:1.27
Rev: src/docode.c:1.166
Rev: src/interpret_functions.h:1.156
Rev: src/iterators.cmod:1.47
Rev: src/testsuite.in:1.673

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: builtin_functions.h,v 1.26 2003/07/21 23:34:01 mast Exp $ + || $Id: builtin_functions.h,v 1.27 2003/09/05 15:19:20 mast Exp $   */      #ifndef BUILTIN_EFUNS_H
107:   PMOD_EXPORT void f__reset_dmalloc(INT32 args);   PMOD_EXPORT void f__locate_references(INT32 args);   PMOD_EXPORT void f_map_array(INT32 args); - PMOD_EXPORT void f_get_iterator(INT32 args); +    void init_builtin_efuns(void);    -  + /* From iterators.cmod. */ + PMOD_EXPORT void f_get_iterator(INT32 args); + int foreach_iterate(struct object *o, int do_step); +    /* From builtin.cmod. */   PMOD_EXPORT void f_column(INT32 args);   PMOD_EXPORT void f_trace(INT32 args);