summaryrefslogtreecommitdiffstats
path: root/src/H5MMprivate.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-03-09 00:41:54 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-03-09 00:41:54 (GMT)
commit2a4ea9b24e5d28598b627fca39fb42a9baedfaa3 (patch)
tree5952db2c3be4eba3007958ccc98942cd255f776f /src/H5MMprivate.h
parent63bd09ec8bb62e31b7ca52ce4c36d9bfd143c555 (diff)
downloadhdf5-2a4ea9b24e5d28598b627fca39fb42a9baedfaa3.zip
hdf5-2a4ea9b24e5d28598b627fca39fb42a9baedfaa3.tar.gz
hdf5-2a4ea9b24e5d28598b627fca39fb42a9baedfaa3.tar.bz2
[svn-r26392] Reinstates r26327-8, which had been reverted due to failures on
Solaris and OS X. 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: h5committest + OS X (quail) + Solaris (emu)
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);