]> granicus.if.org Git - php/commitdiff
use *e*malloc functions
authorMarcus Boerger <helly@php.net>
Tue, 12 Nov 2002 16:02:03 +0000 (16:02 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 12 Nov 2002 16:02:03 +0000 (16:02 +0000)
ext/gd/libgd/gdhelpers.c

index 03f880a06b22f21d316cab8dc8f837d8c8fcd5d5..6f01872deb4be8422f187caa12093517741ea862 100644 (file)
@@ -1,3 +1,9 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "php.h"
+
 #include "gd.h"
 #include "gdhelpers.h"
 #include <stdlib.h>
@@ -74,23 +80,23 @@ gd_strtok_r (char *s, char *sep, char **state)
 void *
 gdCalloc (size_t nmemb, size_t size)
 {
-  return calloc (nmemb, size);
+  return ecalloc (nmemb, size);
 }
 
 void *
 gdMalloc (size_t size)
 {
-  return malloc (size);
+  return emalloc (size);
 }
 
 void *
 gdRealloc (void *ptr, size_t size)
 {
-  return realloc (ptr, size);
+  return erealloc (ptr, size);
 }
 
 void
 gdFree (void *ptr)
 {
-  free (ptr);
+  efree (ptr);
 }