1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00

- Use *_ex-API and *_RESOURCE-macros (partial).

# Yell if this breaks all the hell loose. Otherwise I'll continue with the
# wonderful experience of learning PHP4/Zend-APIS.
This commit is contained in:
Jouni Ahto
2000-02-28 16:52:03 +00:00
parent fd629e6ee0
commit bafbbea051
2 changed files with 487 additions and 649 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -56,6 +56,15 @@
extern zend_module_entry gd_module_entry;
#define phpext_gd_ptr &gd_module_entry
typedef struct {
int le_gd;
int le_gd_font;
#if HAVE_LIBT1
int le_ps_font;
int le_ps_enc;
#endif
} php_gd_globals;
/* gd.c functions */
PHP_MINFO_FUNCTION(gd);
extern PHP_MINIT_FUNCTION(gd);
@@ -108,6 +117,18 @@ PHP_FUNCTION(imagettfbbox);
PHP_FUNCTION(imagettftext);
#endif
PHPAPI int phpi_get_le_gd(void);
#ifdef ZTS
#define GDLS_D php_gd_globals *gd_globals
#define GDG(v) (gd_globals->v)
#define GDLS_FETCH() php_gd_globals *gd_globals = ts_resource(gd_globals_id)
#else
#define GDLS_D
#define GDG(v) (gd_globals.v)
#define GDLS_FETCH()
#endif
#else
#define phpext_gd_ptr NULL