php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
gdhelpers.h File Reference
#include <sys/types.h>
#include "php.h"

Go to the source code of this file.

Macros

#define gdCalloc(nmemb, size)
 
#define gdMalloc(size)
 
#define gdRealloc(ptr, size)
 
#define gdEstrdup(ptr)
 
#define gdFree(ptr)
 
#define gdPMalloc(ptr)
 
#define gdPFree(ptr)
 
#define gdPEstrdup(ptr)
 
#define gdMutexDeclare(x)
 
#define gdMutexSetup(x)
 
#define gdMutexShutdown(x)
 
#define gdMutexLock(x)
 
#define gdMutexUnlock(x)
 
#define DPCM2DPI(dpcm)
 
#define DPM2DPI(dpm)
 
#define DPI2DPCM(dpi)
 
#define DPI2DPM(dpi)
 

Functions

char * gd_strtok_r (char *s, char *sep, char **state)
 
int overflow2 (int a, int b)
 

Macro Definition Documentation

◆ DPCM2DPI

#define DPCM2DPI ( dpcm)
Value:
(unsigned int)((dpcm)*2.54 + 0.5)

Definition at line 45 of file gdhelpers.h.

◆ DPI2DPCM

#define DPI2DPCM ( dpi)
Value:
(unsigned int)((dpi)/2.54 + 0.5)

Definition at line 47 of file gdhelpers.h.

◆ DPI2DPM

#define DPI2DPM ( dpi)
Value:
(unsigned int)((dpi)/0.0254 + 0.5)

Definition at line 48 of file gdhelpers.h.

◆ DPM2DPI

#define DPM2DPI ( dpm)
Value:
(unsigned int)((dpm)*0.0254 + 0.5)

Definition at line 46 of file gdhelpers.h.

◆ gdCalloc

#define gdCalloc ( nmemb,
size )
Value:
ecalloc(nmemb, size)
new_type size
Definition ffi.c:4365
#define ecalloc(nmemb, size)
Definition zend_alloc.h:158

Definition at line 15 of file gdhelpers.h.

◆ gdEstrdup

#define gdEstrdup ( ptr)
Value:
void * ptr
Definition ffi.c:3814
#define estrdup(s)
Definition zend_alloc.h:164

Definition at line 18 of file gdhelpers.h.

◆ gdFree

#define gdFree ( ptr)
Value:
#define efree(ptr)
Definition zend_alloc.h:155

Definition at line 19 of file gdhelpers.h.

◆ gdMalloc

#define gdMalloc ( size)
Value:
#define emalloc(size)
Definition zend_alloc.h:151

Definition at line 16 of file gdhelpers.h.

◆ gdMutexDeclare

#define gdMutexDeclare ( x)

Definition at line 38 of file gdhelpers.h.

◆ gdMutexLock

#define gdMutexLock ( x)

Definition at line 41 of file gdhelpers.h.

◆ gdMutexSetup

#define gdMutexSetup ( x)

Definition at line 39 of file gdhelpers.h.

◆ gdMutexShutdown

#define gdMutexShutdown ( x)

Definition at line 40 of file gdhelpers.h.

◆ gdMutexUnlock

#define gdMutexUnlock ( x)

Definition at line 42 of file gdhelpers.h.

◆ gdPEstrdup

#define gdPEstrdup ( ptr)
Value:
#define pestrdup(s, persistent)
Definition zend_alloc.h:206

Definition at line 22 of file gdhelpers.h.

◆ gdPFree

#define gdPFree ( ptr)
Value:
#define pefree(ptr, persistent)
Definition zend_alloc.h:191

Definition at line 21 of file gdhelpers.h.

◆ gdPMalloc

#define gdPMalloc ( ptr)
Value:
#define pemalloc(size, persistent)
Definition zend_alloc.h:189

Definition at line 20 of file gdhelpers.h.

◆ gdRealloc

#define gdRealloc ( ptr,
size )
Value:
#define erealloc(ptr, size)
Definition zend_alloc.h:159

Definition at line 17 of file gdhelpers.h.

Function Documentation

◆ gd_strtok_r()

char * gd_strtok_r ( char * s,
char * sep,
char ** state )
extern

Definition at line 15 of file gdhelpers.c.

◆ overflow2()

int overflow2 ( int a,
int b )

Definition at line 10 of file gd_compat.c.