diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/gd/libgd/gdhelpers.h | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/gd/libgd/gdhelpers.h')
-rw-r--r-- | ext/gd/libgd/gdhelpers.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/ext/gd/libgd/gdhelpers.h b/ext/gd/libgd/gdhelpers.h deleted file mode 100644 index 5e7d9bee73..0000000000 --- a/ext/gd/libgd/gdhelpers.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef GDHELPERS_H -#define GDHELPERS_H 1 - -#include <sys/types.h> -#include "php.h" - -/* TBB: strtok_r is not universal; provide an implementation of it. */ - -extern char *gd_strtok_r(char *s, char *sep, char **state); - -/* These functions wrap memory management. gdFree is - in gd.h, where callers can utilize it to correctly - free memory allocated by these functions with the - right version of free(). */ -#define gdCalloc(nmemb, size) ecalloc(nmemb, size) -#define gdMalloc(size) emalloc(size) -#define gdRealloc(ptr, size) erealloc(ptr, size) -#define gdEstrdup(ptr) estrdup(ptr) -#define gdFree(ptr) efree(ptr) -#define gdPMalloc(ptr) pemalloc(ptr, 1) -#define gdPFree(ptr) pefree(ptr, 1) -#define gdPEstrdup(ptr) pestrdup(ptr, 1) - -#ifdef ZTS -#define gdMutexDeclare(x) MUTEX_T x -#define gdMutexSetup(x) x = tsrm_mutex_alloc() -#define gdMutexShutdown(x) tsrm_mutex_free(x) -#define gdMutexLock(x) tsrm_mutex_lock(x) -#define gdMutexUnlock(x) tsrm_mutex_unlock(x) -#else -#define gdMutexDeclare(x) -#define gdMutexSetup(x) -#define gdMutexShutdown(x) -#define gdMutexLock(x) -#define gdMutexUnlock(x) -#endif - -#endif /* GDHELPERS_H */ - |