Clean up code.

Removed PHP_PGSQL_API macro.
Define pgsql_globals_id
# Need a little more clean up
This commit is contained in:
Yasuo Ohgaki 2002-02-06 07:25:51 +00:00
parent b42f0b0d43
commit 39ad453266
2 changed files with 5 additions and 10 deletions

View file

@ -177,7 +177,7 @@ static int le_link, le_plink, le_result, le_lofp, le_string;
#ifdef ZTS
int pgsql_globals_id;
#else
PHP_PGSQL_API php_pgsql_globals pgsql_globals;
php_pgsql_globals pgsql_globals;
#endif
/* {{{ php_pgsql_set_default_link

View file

@ -38,12 +38,6 @@ extern zend_module_entry pgsql_module_entry;
#include <libpq/libpq-fs.h>
#endif
#ifdef PHP_WIN32
#define PHP_PGSQL_API __declspec(dllexport)
#else
#define PHP_PGSQL_API
#endif
#ifdef HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT
const char * pg_encoding_to_char(int encoding);
#endif
@ -158,9 +152,10 @@ typedef struct {
#ifdef ZTS
# define PGG(v) TSRMG(pgsql_globals_id, php_pgsql_globals *, v)
extern int pgsql_globals_id;
#else
# define PGG(v) (pgsql_globals.v)
extern PHP_PGSQL_API php_pgsql_globals pgsql_globals;
extern php_pgsql_globals pgsql_globals;
#endif
#endif