cvs: pecl /hyperwave php_hyperwave.h
| From: | Uwe Steinmann | Date: | Tue, 15 Jul 2003 15:10:18 +0000 |
| Subject: | cvs: pecl /hyperwave php_hyperwave.h | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-362@lists.php.net to get a copy of this message | ||
steinm Tue Jul 15 11:10:18 2003 EDT
Modified files:
/pecl/hyperwave php_hyperwave.h
Log:
- used some more defines
- removed 'ifdef HYPERWAVE'
Index: pecl/hyperwave/php_hyperwave.h
diff -u pecl/hyperwave/php_hyperwave.h:1.20 pecl/hyperwave/php_hyperwave.h:1.21
--- pecl/hyperwave/php_hyperwave.h:1.20 Tue Jun 10 16:03:30 2003
+++ pecl/hyperwave/php_hyperwave.h Tue Jul 15 11:10:18 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_hyperwave.h,v 1.20 2003/06/10 20:03:30 imajes Exp $ */
+/* $Id: php_hyperwave.h,v 1.21 2003/07/15 15:10:18 steinm Exp $ */
#ifndef PHP_HYPERWAVE_H
#define PHP_HYPERWAVE_H
@@ -27,7 +27,8 @@
#define PHP_HW_API
#endif
-#if HYPERWAVE
+/* #if HYPERWAVE */
+
#ifndef DLEXPORT
#define DLEXPORT
#endif
@@ -41,19 +42,18 @@
extern zend_module_entry hw_module_entry;
#define hw_module_ptr &hw_module_entry
-typedef struct {
+ZEND_BEGIN_MODULE_GLOBALS(hw)
long default_link;
long default_port;
long num_links,num_persistent;
long max_links,max_persistent;
long allow_persistent;
-} zend_hw_globals;
+ZEND_END_MODULE_GLOBALS(hw)
#ifdef ZTS
# define HwSG(v) TSRMG(hw_globals_id, zend_hw_globals *, v)
#else
# define HwSG(v) (hw_globals.v)
-extern PHP_HW_API zend_hw_globals hw_globals;
#endif
/*extern hw_module php_hw_module;*/
@@ -139,9 +139,11 @@
PHP_FUNCTION(hw_stat);
PHP_FUNCTION(hw_mapid);
+/*
#else
#define hw_module_ptr NULL
-#endif /* HYPERWAVE */
+#endif */ /* HYPERWAVE */
+
#define phpext_hyperwave_ptr hw_module_ptr
#endif /* PHP_HYPERWAVE_H */