diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-07 15:59:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 15:59:54 (GMT) |
commit | bbfecfe08adba3c0a2ebd589aea8bbfce8bc4011 (patch) | |
tree | c860b62401c2b18208c9f65f6691d3379fda3807 /src/H5private.h | |
parent | 37efa90085f6c34db6d5947f3320c3d519ee3653 (diff) | |
download | hdf5-bbfecfe08adba3c0a2ebd589aea8bbfce8bc4011.zip hdf5-bbfecfe08adba3c0a2ebd589aea8bbfce8bc4011.tar.gz hdf5-bbfecfe08adba3c0a2ebd589aea8bbfce8bc4011.tar.bz2 |
Update uthash and move to H5private.h (#3074)
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index ff23370..747c77d 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -251,6 +251,16 @@ #include "dmalloc.h" #endif /* H5_HAVE_DMALLOC_H */ +/* 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" + /* * NT doesn't define SIGBUS, but since NT only runs on processors * that do not have alignment constraints a SIGBUS would never be |