From d87cc976e1156b839fc6d4aa6b473a126802b8e3 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 28 Jul 2001 11:36:37 +0000 Subject: Redesigned thread safety mechanism - nua nua --- ext/pgsql/php_pgsql.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'ext/pgsql/php_pgsql.h') diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index 09d47dfcf6..4dc190f3c9 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -127,21 +127,12 @@ typedef struct { #ifdef ZTS -# define PGLS_D php_pgsql_globals *pgsql_globals -# define PGLS_DC , PGLS_D -# define PGLS_C pgsql_globals -# define PGLS_CC , PGLS_C -# define PGG(v) (pgsql_globals->v) -# define PGLS_FETCH() php_pgsql_globals *pgsql_globals = ts_resource(pgsql_globals_id) +# define PGG(v) TSRMG(pgsql_globals_id, php_pgsql_globals *, v) #else -# define PGLS_D -# define PGLS_DC -# define PGLS_C -# define PGLS_CC # define PGG(v) (pgsql_globals.v) -# define PGLS_FETCH() extern PHP_PGSQL_API php_pgsql_globals pgsql_globals; #endif + #endif #else -- cgit v1.2.1