summaryrefslogtreecommitdiffstats
path: root/src/uthash.h
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-26 21:45:46 (GMT)
committerGitHub <noreply@github.com>2022-07-26 21:45:46 (GMT)
commitae414872f50187e64cbd6cc8f076c22cf5df2d53 (patch)
treeb616f33f5daa89f213e7c64e04c63afde906e939 /src/uthash.h
parent213eac2588369f75a11df6bb1788dde33c4b82e2 (diff)
downloadhdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.zip
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.gz
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.bz2
Develop clang 13 format (#1933)
* Update format source to clang 13 * More format changes
Diffstat (limited to 'src/uthash.h')
-rw-r--r--src/uthash.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/uthash.h b/src/uthash.h
index f259ba2..ecf512d 100644
--- a/src/uthash.h
+++ b/src/uthash.h
@@ -534,7 +534,7 @@ typedef unsigned char uint8_t;
if (head) { \
unsigned _bkt_i; \
unsigned _count = 0; \
- char * _prev; \
+ char *_prev; \
for (_bkt_i = 0; _bkt_i < (head)->hh.tbl->num_buckets; ++_bkt_i) { \
unsigned _bkt_count = 0; \
_thh = (head)->hh.tbl->buckets[_bkt_i].hh_head; \
@@ -875,7 +875,7 @@ typedef unsigned char uint8_t;
unsigned _he_bkt; \
unsigned _he_bkt_i; \
struct UT_hash_handle *_he_thh, *_he_hh_nxt; \
- UT_hash_bucket * _he_new_buckets, *_he_newbkt; \
+ UT_hash_bucket *_he_new_buckets, *_he_newbkt; \
_he_new_buckets = \
(UT_hash_bucket *)uthash_malloc(sizeof(struct UT_hash_bucket) * (tbl)->num_buckets * 2U); \
if (!_he_new_buckets) { \
@@ -1018,7 +1018,7 @@ typedef unsigned char uint8_t;
#define HASH_SELECT(hh_dst, dst, hh_src, src, cond) \
do { \
unsigned _src_bkt, _dst_bkt; \
- void * _last_elt = NULL, *_elt; \
+ void *_last_elt = NULL, *_elt; \
UT_hash_handle *_src_hh, *_dst_hh, *_last_elt_hh = NULL; \
ptrdiff_t _dst_hho = ((char *)(&(dst)->hh_dst) - (char *)(dst)); \
if ((src) != NULL) { \
@@ -1126,7 +1126,7 @@ typedef struct UT_hash_bucket {
#define HASH_BLOOM_SIGNATURE 0xb12220f2u
typedef struct UT_hash_table {
- UT_hash_bucket * buckets;
+ UT_hash_bucket *buckets;
unsigned num_buckets, log2_num_buckets;
unsigned num_items;
struct UT_hash_handle *tail; /* tail hh in app order, for fast append */
@@ -1159,12 +1159,12 @@ typedef struct UT_hash_table {
} UT_hash_table;
typedef struct UT_hash_handle {
- struct UT_hash_table * tbl;
- void * prev; /* prev element in app order */
- void * next; /* next element in app order */
+ struct UT_hash_table *tbl;
+ void *prev; /* prev element in app order */
+ void *next; /* next element in app order */
struct UT_hash_handle *hh_prev; /* previous hh in bucket order */
struct UT_hash_handle *hh_next; /* next hh in bucket order */
- const void * key; /* ptr to enclosing struct's key */
+ const void *key; /* ptr to enclosing struct's key */
unsigned keylen; /* enclosing struct's key len */
unsigned hashv; /* result of hash-fcn(key) */
} UT_hash_handle;