cvs: ZendEngine2 / zend_iterators.h
| From: | Marcus Boerger | Date: | Sat, 18 Oct 2003 14:56:47 +0000 |
| Subject: | cvs: ZendEngine2 / zend_iterators.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1919@lists.php.net to get a copy of this message | ||
helly Sat Oct 18 10:56:47 2003 EDT
Modified files:
/ZendEngine2 zend_iterators.h
Log:
Change order: Optional rewind() to end of structure
Index: ZendEngine2/zend_iterators.h
diff -u ZendEngine2/zend_iterators.h:1.1 ZendEngine2/zend_iterators.h:1.2
--- ZendEngine2/zend_iterators.h:1.1 Fri Oct 17 13:19:44 2003
+++ ZendEngine2/zend_iterators.h Sat Oct 18 10:56:47 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_iterators.h,v 1.1 2003/10/17 17:19:44 helly Exp $ */
+/* $Id: zend_iterators.h,v 1.2 2003/10/18 14:56:47 helly Exp $ */
/* These iterators were designed to operate within the foreach()
* structures provided by the engine, but could be extended for use
@@ -32,9 +32,6 @@
/* release all resources associated with this iterator instance */
void (*dtor)(zend_object_iterator *iter TSRMLS_DC);
- /* rewind to start of data (optional, may be NULL) */
- void (*rewind)(zend_object_iterator *iter TSRMLS_DC);
-
/* check for end of iteration (FAILURE or SUCCESS for more data) */
int (*has_more)(zend_object_iterator *iter TSRMLS_DC);
@@ -46,6 +43,9 @@
/* step forwards to next element */
void (*move_forward)(zend_object_iterator *iter TSRMLS_DC);
+
+ /* rewind to start of data (optional, may be NULL) */
+ void (*rewind)(zend_object_iterator *iter TSRMLS_DC);
} zend_object_iterator_funcs;
struct _zend_object_iterator {