+/* The mappings for the My* functions... */
+/** Helper macro for standard allocations. */
+#define MyMalloc(size) \
+ DoMalloc(size, "malloc", __FILE__, __LINE__)
+
+/** Helper macro for zero-initialized allocations. */
+#define MyCalloc(nelem, size) \
+ DoMallocZero((size) * (nelem), "calloc", __FILE__, __LINE__)
+
+/** Helper macro for freeing memory. */
+#define MyFree(p) \
+ if (p) \
+ DoFree(p, __FILE__, __LINE__)
+
+/** Helper macro for reallocating memory. */
+#define MyRealloc(p, size) \
+ DoRealloc(p, size, __FILE__, __LINE__)
+
+/* First version: fast non-debugging macros... */
+#ifndef MDEBUG