summaryrefslogtreecommitdiff
path: root/ext/xml/php3_xml.h
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>1999-09-20 12:51:20 +0000
committerThies C. Arntzen <thies@php.net>1999-09-20 12:51:20 +0000
commit6c0c410acfc63dbac09e12597cb5c27b3bf9f467 (patch)
treec9865bbf444d2747cc182ab141630cd3e2fb97c6 /ext/xml/php3_xml.h
parent13d840bc3fc13cc89a3935d3d052d1afd6e68e6a (diff)
downloadphp-git-6c0c410acfc63dbac09e12597cb5c27b3bf9f467.tar.gz
resource API & ZTS stuff
Diffstat (limited to 'ext/xml/php3_xml.h')
-rw-r--r--ext/xml/php3_xml.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/ext/xml/php3_xml.h b/ext/xml/php3_xml.h
index 5049a11219..23d89c0fd2 100644
--- a/ext/xml/php3_xml.h
+++ b/ext/xml/php3_xml.h
@@ -37,14 +37,20 @@
#include <xmltok.h>
#include <xmlparse.h>
+#if WIN32||WINNT
+#define PHP_XML_API __declspec(dllexport)
+#else
+#define PHP_XML_API
+#endif
+
+
#ifdef XML_UNICODE
# error "UTF-16 Unicode support not implemented!"
#endif
typedef struct {
- int le_xml_parser;
XML_Char *default_encoding;
-} xml_module;
+} php_xml_globals;
typedef struct {
int index;
@@ -129,6 +135,22 @@ PHP_FUNCTION(xml_parse_into_struct);
#define phpext_xml_ptr xml_module_ptr
+#ifdef ZTS
+#define XMLLS_D php_xml_globals *xml_globals
+#define XMLLS_DC , PSLS_D
+#define XMLLS_C xml_globals
+#define XMLLS_CC , XMLLS_C
+#define XML(v) (xml_globals->v)
+#define XMLLS_FETCH() php_xml_globals *xml_globals = ts_resource(xml_globals_id)
+#else
+#define XMLLS_D
+#define XMLLS_DC
+#define XMLLS_C
+#define XMLLS_CC
+#define XML(v) (xml_globals.v)
+#define XMLLS_FETCH()
+#endif
+
# endif /* _PHP_XML_H */
/*