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:
1115
ext/gd/gd.c
1115
ext/gd/gd.c
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user