summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-07-12 11:45:05 +0000
committerfoobar <sniper@php.net>2002-07-12 11:45:05 +0000
commitceadbe0e99fd93c52fb23a668998c6c6c59c2b3c (patch)
tree471b0c3a252361c8ecf0fc87e02e0c3c9b486a6d
parentbec1633335181d9d12d90952af55c44a258bed34 (diff)
downloadphp-git-ceadbe0e99fd93c52fb23a668998c6c6c59c2b3c.tar.gz
Fix ZTS build
-rw-r--r--ext/yaz/php_yaz.c17
-rw-r--r--ext/yaz/php_yaz.h2
2 files changed, 7 insertions, 12 deletions
diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c
index 47b2d39ba0..27d815e4e3 100644
--- a/ext/yaz/php_yaz.c
+++ b/ext/yaz/php_yaz.c
@@ -323,8 +323,7 @@ function_entry yaz_functions [] = {
{NULL, NULL, NULL}
};
-static void get_assoc (INTERNAL_FUNCTION_PARAMETERS, pval **id,
- Yaz_Association *assocp)
+static void get_assoc (INTERNAL_FUNCTION_PARAMETERS, pval **id, Yaz_Association *assocp)
{
Yaz_Association *as = 0;
@@ -1094,7 +1093,7 @@ static void send_init(Yaz_Association t)
send_APDU (t, apdu);
}
-static int do_event (int *id, int timeout)
+static int do_event (int *id, int timeout TSRMLS_DC)
{
fd_set input, output;
int i;
@@ -1587,7 +1586,7 @@ PHP_FUNCTION(yaz_wait)
while (ZOOM_event (no, conn_ar))
;
#else
- while (do_event(&id, timeout))
+ while (do_event(&id, timeout TSRMLS_CC))
;
#endif
RETURN_TRUE;
@@ -2973,7 +2972,7 @@ static void php_yaz_init_globals(zend_yaz_globals *yaz_globals)
}
/* }}} */
-void yaz_close_session(Yaz_Association *as)
+void yaz_close_session(Yaz_Association *as TSRMLS_DC)
{
if (*as && (*as)->order == YAZSG(assoc_seq))
{
@@ -2987,14 +2986,10 @@ void yaz_close_session(Yaz_Association *as)
}
}
-static void yaz_close_link (zend_rsrc_list_entry *rsrc
-#ifdef TSRMLS_DC
- TSRMLS_DC
-#endif
-)
+static void yaz_close_link (zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
Yaz_Association *as = (Yaz_Association *) rsrc->ptr;
- yaz_close_session (as);
+ yaz_close_session (as TSRMLS_CC);
}
/* {{{ PHP_INI_BEGIN
diff --git a/ext/yaz/php_yaz.h b/ext/yaz/php_yaz.h
index 0a80be2f2b..565edb0aa0 100644
--- a/ext/yaz/php_yaz.h
+++ b/ext/yaz/php_yaz.h
@@ -60,7 +60,7 @@ ZEND_BEGIN_MODULE_GLOBALS(yaz)
ZEND_END_MODULE_GLOBALS(yaz)
#ifdef ZTS
-#define YAZSG(v) TSRMG(yaz_globals_id, zend_yaz_globals *. v)
+#define YAZSG(v) TSRMG(yaz_globals_id, zend_yaz_globals *, v)
#else
#define YAZSG(v) (yaz_globals.v)
#endif