FT_CharMap charmap;
a = (font_t *) gdMalloc (sizeof (font_t));
- a->fontlist = gdEstrdup (b->fontlist);
+ a->fontlist = strdup (b->fontlist);
a->library = b->library;
/*
fontsearchpath = getenv ("GDFONTPATH");
if (!fontsearchpath)
fontsearchpath = DEFAULT_FONTPATH;
- fontlist = gdEstrdup (a->fontlist);
+ fontlist = strdup (a->fontlist);
/*
* Must use gd_strtok_r else pointer corrupted by strtok in nested loop.
{
/* make a fresh copy each time - strtok corrupts it. */
- path = gdEstrdup (fontsearchpath);
+ path = strdup (fontsearchpath);
/*
* Allocate an oversized buffer that is guaranteed to be
* big enough for all paths to be tested.
void *
gdCalloc (size_t nmemb, size_t size)
{
- return ecalloc (nmemb, size);
+ return calloc (nmemb, size);
}
void *
gdMalloc (size_t size)
{
- return emalloc (size);
+ return malloc (size);
}
void *
gdRealloc (void *ptr, size_t size)
{
- return erealloc (ptr, size);
+ return realloc (ptr, size);
}
void
gdFree (void *ptr)
{
- efree (ptr);
-}
-
-char *
-gdEstrdup (const char *ptr)
-{
- return estrdup(ptr);
+ free (ptr);
}