diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/simplexml/php_simplexml_exports.h | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/simplexml/php_simplexml_exports.h')
-rw-r--r-- | ext/simplexml/php_simplexml_exports.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/ext/simplexml/php_simplexml_exports.h b/ext/simplexml/php_simplexml_exports.h new file mode 100644 index 0000000..66ec3bd --- /dev/null +++ b/ext/simplexml/php_simplexml_exports.h @@ -0,0 +1,67 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 5 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997-2013 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.01 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_01.txt | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Author: Sterling Hughes <sterling@php.net> | + | Marcus Boerger <helly@php.net> | + | Rob Richards <rrichards@php.net> | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + +#ifndef PHP_SIMPLEXML_EXPORTS_H +#define PHP_SIMPLEXML_EXPORTS_H + +#include "php_simplexml.h" + +#define SKIP_TEXT(__p) \ + if ((__p)->type == XML_TEXT_NODE) { \ + goto next_iter; \ + } + +#define GET_NODE(__s, __n) { \ + if ((__s)->node && (__s)->node->node) { \ + __n = (__s)->node->node; \ + } else { \ + __n = NULL; \ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Node no longer exists"); \ + } \ +} + +PHP_SXE_API zend_object_value sxe_object_new(zend_class_entry *ce TSRMLS_DC); +/* {{{ php_sxe_fetch_object() + */ +static inline php_sxe_object * +php_sxe_fetch_object(zval *object TSRMLS_DC) +{ + return (php_sxe_object *) zend_object_store_get_object(object TSRMLS_CC); +} +/* }}} */ + +typedef struct { + zend_object_iterator intern; + php_sxe_object *sxe; +} php_sxe_iterator; + +#endif /* PHP_SIMPLEXML_EXPORTS_H */ + +/** + * Local Variables: + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: t + * End: + * vim600: fdm=marker + * vim: noet sw=4 ts=4 + */ |