diff options
Diffstat (limited to 'ext/simplexml/php_simplexml.h')
-rw-r--r-- | ext/simplexml/php_simplexml.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/simplexml/php_simplexml.h b/ext/simplexml/php_simplexml.h index cbd869c540..15e0221ec2 100644 --- a/ext/simplexml/php_simplexml.h +++ b/ext/simplexml/php_simplexml.h @@ -53,6 +53,13 @@ PHP_RINIT_FUNCTION(simplexml); #endif PHP_MINFO_FUNCTION(simplexml); +typedef enum { + SXE_ITER_NONE = 0, + SXE_ITER_ELEMENT = 1, + SXE_ITER_CHILD = 2, + SXE_ITER_ATTRLIST = 3 +} SXE_ITER; + typedef struct { zend_object zo; php_libxml_node_ptr *node; @@ -63,16 +70,12 @@ typedef struct { int itertype; char *name; char *nsprefix; - int type; + SXE_ITER type; zval *data; } iter; + zval *tmp; } php_sxe_object; -#define SXE_ITER_NONE 0 -#define SXE_ITER_ELEMENT 1 -#define SXE_ITER_CHILD 2 -#define SXE_ITER_ATTRLIST 3 - #ifdef ZTS #define SIMPLEXML_G(v) TSRMG(simplexml_globals_id, zend_simplexml_globals *, v) #else |