Skip to content

Commit 1e9d64c

Browse files
committed
Zend/zend_iterators: include cleanup
1 parent 7a583c5 commit 1e9d64c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Zend/zend_iterators.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
#include "zend.h"
21-
#include "zend_API.h"
20+
#include "zend_iterators.h"
21+
#include "zend_objects.h"
22+
#include "zend_object_handlers.h"
23+
#include "zend_API.h" // for INIT_CLASS_ENTRY
2224

2325
static zend_class_entry zend_iterator_class_entry;
2426

Zend/zend_iterators.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20+
#ifndef ZEND_ITERATORS_H
21+
#define ZEND_ITERATORS_H
22+
23+
#include "zend_types.h" // for zval
24+
2025
/* These iterators were designed to operate within the foreach()
2126
* structures provided by the engine, but could be extended for use
2227
* with other iterative engine opcodes.
@@ -89,3 +94,5 @@ ZEND_API void zend_iterator_dtor(zend_object_iterator *iter);
8994

9095
ZEND_API void zend_register_iterator_wrapper(void);
9196
END_EXTERN_C()
97+
98+
#endif /* ZEND_ITERATORS_H */

0 commit comments

Comments
 (0)