diff options
author | Marcus Boerger <helly@php.net> | 2003-10-18 14:56:47 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-10-18 14:56:47 +0000 |
commit | ac262baf19d122715e686521b76ddabb973d02b5 (patch) | |
tree | d2f49945a23283740e66a09f92220756970df909 /Zend/zend_iterators.h | |
parent | ba21b244b5ec18d835cb05bf8357aee771f8f6ef (diff) | |
download | php-git-ac262baf19d122715e686521b76ddabb973d02b5.tar.gz |
Change order: Optional rewind() to end of structure
Diffstat (limited to 'Zend/zend_iterators.h')
-rwxr-xr-x | Zend/zend_iterators.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_iterators.h b/Zend/zend_iterators.h index 6ac93dc69f..bd62cc0c8d 100755 --- a/Zend/zend_iterators.h +++ b/Zend/zend_iterators.h @@ -32,9 +32,6 @@ typedef struct _zend_object_iterator_funcs { /* 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 @@ typedef struct _zend_object_iterator_funcs { /* 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 { |