summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-02-26 22:56:48 (GMT)
committerGitHub <noreply@github.com>2023-02-26 22:56:48 (GMT)
commit0be37fec204e0bca0197f237e6eb4ac137ccdafc (patch)
treec2b3e02085f0f607fe4039a7b1055efc4ae4279c /src/H5private.h
parent39e6e30eb924388831561e644c17de7dc7be2928 (diff)
downloadhdf5-0be37fec204e0bca0197f237e6eb4ac137ccdafc.zip
hdf5-0be37fec204e0bca0197f237e6eb4ac137ccdafc.tar.gz
hdf5-0be37fec204e0bca0197f237e6eb4ac137ccdafc.tar.bz2
Merge uthash version update from develop (#2502)
* Merege uthash version update from develop
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 1a20b62..699c6ab 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -156,6 +156,16 @@
#define R_OK 04
#endif
+/* uthash is an external, header-only hash table implementation.
+ *
+ * We include the file directly in src/ and #define a few functions
+ * to use our internal memory calls.
+ */
+#define uthash_malloc(sz) H5MM_malloc(sz)
+#define uthash_free(ptr, sz) H5MM_free(ptr) /* Ignoring sz is intentional */
+#define HASH_NONFATAL_OOM 1 /* Don't abort() on out-of-memory */
+#include "uthash.h"
+
/*
* MPE Instrumentation support
*/