summaryrefslogtreecommitdiffstats
path: root/src/H5FL.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-09-05 21:52:30 (GMT)
committerGitHub <noreply@github.com>2023-09-05 21:52:30 (GMT)
commit8253ab9ebf6a082dc07eb931f27b169d6a45d577 (patch)
tree47630856491e54f5d28e1608ffa5e2f976dc9c95 /src/H5FL.c
parent920869796031ed4ee9c1fbea8aaccda3592a88b3 (diff)
downloadhdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.zip
hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.tar.gz
hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.tar.bz2
Convert hbool_t --> bool in src (#3496)
* hbool_t --> bool in src * Does not remove TRUE/FALSE * Public header files are unchanged * Public API calls are unchanged * TRUE/FALSE --> true/false in src * Add deprecation notice for hbool_t
Diffstat (limited to 'src/H5FL.c')
-rw-r--r--src/H5FL.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5FL.c b/src/H5FL.c
index 5ed6430..5dd4ed3 100644
--- a/src/H5FL.c
+++ b/src/H5FL.c
@@ -273,7 +273,7 @@ H5FL__reg_init(H5FL_reg_head_t *head)
H5FL_reg_gc_head.first = new_node;
/* Indicate that the free list is initialized */
- head->init = TRUE;
+ head->init = true;
/* Make certain that the space allocated is large enough to store a free list pointer (eventually) */
if (head->size < sizeof(H5FL_reg_node_t))
@@ -609,7 +609,7 @@ H5FL__reg_term(void)
/* No allocations left open for list, get rid of it */
else {
/* Reset the "initialized" flag, in case we restart this list somehow (I don't know how..) */
- H5FL_reg_gc_head.first->list->init = FALSE;
+ H5FL_reg_gc_head.first->list->init = false;
/* Free the node from the garbage collection list */
H5MM_xfree(H5FL_reg_gc_head.first);
@@ -751,7 +751,7 @@ H5FL__blk_init(H5FL_blk_head_t *head)
H5FL_blk_gc_head.first = new_node;
/* Indicate that the PQ is initialized */
- head->init = TRUE;
+ head->init = true;
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -782,9 +782,9 @@ H5FL_blk_free_block_avail(H5FL_blk_head_t *head, size_t size)
/* check if there is a free list for blocks of this size */
/* and if there are any blocks available on the list */
if ((free_list = H5FL__blk_find_list(&(head->head), size)) != NULL && free_list->list != NULL)
- ret_value = TRUE;
+ ret_value = true;
else
- ret_value = FALSE;
+ ret_value = false;
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5FL_blk_free_block_avail() */
@@ -1281,7 +1281,7 @@ H5FL__blk_term(void)
/* No allocations left open for list, get rid of it */
else {
/* Reset the "initialized" flag, in case we restart this list somehow (I don't know how..) */
- H5FL_blk_gc_head.first->pq->init = FALSE;
+ H5FL_blk_gc_head.first->pq->init = false;
/* Free the node from the garbage collection list */
H5MM_free(H5FL_blk_gc_head.first);
@@ -1337,7 +1337,7 @@ H5FL__arr_init(H5FL_arr_head_t *head)
head->list_arr[u].size = head->base_size + (head->elem_size * u);
/* Indicate that the free list is initialized */
- head->init = TRUE;
+ head->init = true;
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -1804,7 +1804,7 @@ H5FL__arr_term(void)
H5MM_xfree(H5FL_arr_gc_head.first->list->list_arr);
/* Reset the "initialized" flag, in case we restart this list somehow (I don't know how..) */
- H5FL_arr_gc_head.first->list->init = FALSE;
+ H5FL_arr_gc_head.first->list->init = false;
/* Free the node from the garbage collection list */
H5MM_free(H5FL_arr_gc_head.first);
@@ -1983,7 +1983,7 @@ H5FL_fac_init(size_t size)
#endif /* H5FL_TRACK */
/* Indicate that the free list is initialized */
- factory->init = TRUE;
+ factory->init = true;
/* Set return value */
ret_value = factory;
@@ -2353,7 +2353,7 @@ H5FL__fac_term_all(void)
assert(H5FL_fac_gc_head.first->list->allocated == 0);
/* Reset the "initialized" flag, in case we restart this list somehow (I don't know how..) */
- H5FL_fac_gc_head.first->list->init = FALSE;
+ H5FL_fac_gc_head.first->list->init = false;
/* Free the node from the garbage collection list */
H5FL_fac_gc_head.first = H5FL_FREE(H5FL_fac_gc_node_t, H5FL_fac_gc_head.first);