summaryrefslogtreecommitdiff
path: root/ext/xmlreader/php_xmlreader.h
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2005-10-13 21:20:12 (GMT)
committerRob Richards <rrichards@php.net>2005-10-13 21:20:12 (GMT)
commit709f73aea7ce9919989040cb5beb88870cf9d761 (patch)
tree340fc89b2fd56167ab6a75b122727929a63f94a2 /ext/xmlreader/php_xmlreader.h
parent646500bfe956af0f3f19f93355916f71025af055 (diff)
downloadphp-709f73aea7ce9919989040cb5beb88870cf9d761.tar.gz
MFH: move constants to class
Diffstat (limited to 'ext/xmlreader/php_xmlreader.h')
-rw-r--r--ext/xmlreader/php_xmlreader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xmlreader/php_xmlreader.h b/ext/xmlreader/php_xmlreader.h
index c41112f..1191794 100644
--- a/ext/xmlreader/php_xmlreader.h
+++ b/ext/xmlreader/php_xmlreader.h
@@ -53,6 +53,8 @@ PHP_MINIT_FUNCTION(xmlreader);
PHP_MSHUTDOWN_FUNCTION(xmlreader);
PHP_MINFO_FUNCTION(xmlreader);
+#define REGISTER_XMLREADER_CLASS_CONST_LONG(const_name, value) \
+ zend_declare_class_constant_long(xmlreader_class_entry, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
#ifdef ZTS
#define XMLREADER_G(v) TSRMG(xmlreader_globals_id, zend_xmlreader_globals *, v)