summaryrefslogtreecommitdiffstats
path: root/src/H5MMprivate.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-02-27 03:33:25 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-02-27 03:33:25 (GMT)
commitc16d23010120083bdf8070b1e3920ca77f83ae50 (patch)
tree6eb8969a4c341225711d014dd3e525852760543f /src/H5MMprivate.h
parent4c2749fb1da5181528e8b48caeda056d331e4e40 (diff)
downloadhdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.zip
hdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.tar.gz
hdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.tar.bz2
[svn-r26327] Added public API functions that expose the C library's memory allocator
for use in filter functions that need to allocate or resize buffers. Intended for use with filter plugins, particularly on Windows, where C runtime (CRT) issues can cause problems. Fixes: HDFFV-9100 tested on: jam (minor, localized change)
Diffstat (limited to 'src/H5MMprivate.h')
-rw-r--r--src/H5MMprivate.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/H5MMprivate.h b/src/H5MMprivate.h
index a3c39f0..0d608b2 100644
--- a/src/H5MMprivate.h
+++ b/src/H5MMprivate.h
@@ -33,19 +33,13 @@
/* Private headers needed by this file */
#include "H5private.h"
-#ifdef NDEBUG
-#define H5MM_malloc(Z) HDmalloc(Z)
-#define H5MM_calloc(Z) HDcalloc((size_t)1,Z)
-#endif /* NDEBUG */
#define H5MM_free(Z) HDfree(Z)
/*
* Library prototypes...
*/
-#ifndef NDEBUG
H5_DLL void *H5MM_malloc(size_t size);
H5_DLL void *H5MM_calloc(size_t size);
-#endif /* NDEBUG */
H5_DLL void *H5MM_realloc(void *mem, size_t size);
H5_DLL char *H5MM_xstrdup(const char *s);
H5_DLL char *H5MM_strdup(const char *s);