cvs: pear /XMMS php_xmms.h xmms.c

From: Date: Fri, 10 Aug 2001 09:49:21 +0000
Subject: cvs: pear /XMMS php_xmms.h xmms.c
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-457@lists.php.net to get a copy of this message
rasmus Fri Aug 10 05:49:21 2001 EDT Modified files: /pear/XMMS php_xmms.h xmms.c Log: Use the PHP macros here Index: pear/XMMS/php_xmms.h diff -u pear/XMMS/php_xmms.h:1.2 pear/XMMS/php_xmms.h:1.3 --- pear/XMMS/php_xmms.h:1.2 Thu Aug 9 20:36:50 2001 +++ pear/XMMS/php_xmms.h Fri Aug 10 05:49:21 2001 @@ -65,9 +65,9 @@ PHP_FUNCTION(xmms_pl_win); PHP_FUNCTION(xmms_eq_win); -ZEND_BEGIN_MODULE_GLOBALS(xmms) +PHP_BEGIN_MODULE_GLOBALS(xmms) int session; -ZEND_END_MODULE_GLOBALS(xmms) +PHP_END_MODULE_GLOBALS(xmms) /* In every function that needs to use variables in php_xmms_globals, call TSRM_FETCH(); after declaring other variables used by @@ -77,7 +77,7 @@ */ #ifdef ZTS -#define XG(v) TSRMG(xmms_globals_id, zend_xmms_globals *, v) +#define XG(v) TSRMG(xmms_globals_id, php_xmms_globals *, v) #else #define XG(v) (xmms_globals.v) #endif Index: pear/XMMS/xmms.c diff -u pear/XMMS/xmms.c:1.2 pear/XMMS/xmms.c:1.3 --- pear/XMMS/xmms.c:1.2 Thu Aug 9 20:36:50 2001 +++ pear/XMMS/xmms.c Fri Aug 10 05:49:21 2001 @@ -25,9 +25,7 @@ #include "ext/standard/info.h" #include "php_xmms.h" -/* If you declare any globals in php_xmms.h uncomment this: -ZEND_DECLARE_MODULE_GLOBALS(xmms) -*/ +PHP_DECLARE_MODULE_GLOBALS(xmms) /* {{{ xmms_functions[] * @@ -78,21 +76,19 @@ }; /* }}} */ -ZEND_DECLARE_MODULE_GLOBALS(xmms) - #ifdef COMPILE_DL_XMMS ZEND_GET_MODULE(xmms) #endif /* {{{ php_xmms_init_globals */ -static void php_xmms_init_globals(zend_xmms_globals *xmms_globals) +static void php_xmms_init_globals(php_xmms_globals *xmms_globals) { xmms_globals->session = 0; } /* }}} */ PHP_INI_BEGIN() - STD_PHP_INI_ENTRY("xmms.session", "0", PHP_INI_ALL, OnUpdateInt, session, zend_xmms_globals, xmms_globals) + STD_PHP_INI_ENTRY("xmms.session", "0", PHP_INI_ALL, OnUpdateInt, session, php_xmms_globals, xmms_globals) PHP_INI_END() /* {{{ PHP_MINIT_FUNCTION

« previous php.pear.cvs (#457) next »