$51 GRAYBYTE WORDPRESS FILE MANAGER $29

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php72/usr/include/php/ext/gd/libgd/

HOME
Current File : /opt/alt/php72/usr/include/php/ext/gd/libgd//gdhelpers.h
#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)

/* Returns nonzero if multiplying the two quantities will
	result in integer overflow. Also returns nonzero if
	either quantity is negative. By Phil Knirsch based on
	netpbm fixes by Alan Cox. */

int overflow2(int a, int b);

#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

#define DPCM2DPI(dpcm) (unsigned int)((dpcm)*2.54 + 0.5)
#define DPM2DPI(dpm)   (unsigned int)((dpm)*0.0254 + 0.5)
#define DPI2DPCM(dpi)  (unsigned int)((dpi)/2.54 + 0.5)
#define DPI2DPM(dpi)   (unsigned int)((dpi)/0.0254 + 0.5)

#endif /* GDHELPERS_H */


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
13 Aug 2025 1.53 AM
root / 996
0755
bmp.h
2.393 KB
9 Jul 2025 2.57 PM
root / 996
0644
gd.h
32.726 KB
9 Jul 2025 2.57 PM
root / 996
0644
gd_errors.h
0.657 KB
9 Jul 2025 2.57 PM
root / 996
0644
gd_intern.h
0.255 KB
9 Jul 2025 2.57 PM
root / 996
0644
gd_io.h
1.047 KB
9 Jul 2025 2.57 PM
root / 996
0644
gdcache.h
2.676 KB
9 Jul 2025 2.57 PM
root / 996
0644
gdfontg.h
0.517 KB
9 Jul 2025 2.57 PM
root / 996
0644
gdfontl.h
0.515 KB
9 Jul 2025 2.57 PM
root / 996
0644
gdfontmb.h
0.483 KB
9 Jul 2025 2.57 PM
root / 996
0644
gdfonts.h
0.479 KB
9 Jul 2025 2.57 PM
root / 996
0644
gdfontt.h
0.51 KB
9 Jul 2025 2.57 PM
root / 996
0644
gdhelpers.h
1.543 KB
9 Jul 2025 2.57 PM
root / 996
0644
jisx0208.h
69.678 KB
9 Jul 2025 2.57 PM
root / 996
0644
wbmp.h
1.253 KB
9 Jul 2025 2.57 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF