diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-05 21:52:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 21:52:30 (GMT) |
commit | 8253ab9ebf6a082dc07eb931f27b169d6a45d577 (patch) | |
tree | 47630856491e54f5d28e1608ffa5e2f976dc9c95 /src/H5Fcwfs.c | |
parent | 920869796031ed4ee9c1fbea8aaccda3592a88b3 (diff) | |
download | hdf5-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/H5Fcwfs.c')
-rw-r--r-- | src/H5Fcwfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Fcwfs.c b/src/H5Fcwfs.c index e05de9f..c946fa4 100644 --- a/src/H5Fcwfs.c +++ b/src/H5Fcwfs.c @@ -143,7 +143,7 @@ herr_t H5F_cwfs_find_free_heap(H5F_t *f, size_t need, haddr_t *addr) { unsigned cwfsno; /* Local index for iterating over collections */ - hbool_t found = FALSE; /* Flag to indicate a heap with enough space was found */ + bool found = false; /* Flag to indicate a heap with enough space was found */ herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(FAIL) @@ -172,7 +172,7 @@ H5F_cwfs_find_free_heap(H5F_t *f, size_t need, haddr_t *addr) for (cwfsno = 0; cwfsno < f->shared->ncwfs; cwfsno++) if (H5HG_FREE_SIZE(f->shared->cwfs[cwfsno]) >= need) { *addr = H5HG_ADDR(f->shared->cwfs[cwfsno]); - found = TRUE; + found = true; break; } /* end if */ @@ -196,12 +196,12 @@ H5F_cwfs_find_free_heap(H5F_t *f, size_t need, haddr_t *addr) (hsize_t)H5HG_SIZE(f->shared->cwfs[cwfsno]), (hsize_t)new_need); if (was_extended < 0) HGOTO_ERROR(H5E_HEAP, H5E_CANTEXTEND, FAIL, "error trying to extend heap"); - else if (was_extended == TRUE) { + else if (was_extended == true) { if (H5HG_extend(f, H5HG_ADDR(f->shared->cwfs[cwfsno]), new_need) < 0) HGOTO_ERROR(H5E_HEAP, H5E_CANTRESIZE, FAIL, "unable to extend global heap collection"); *addr = H5HG_ADDR(f->shared->cwfs[cwfsno]); - found = TRUE; + found = true; break; } /* end if */ } /* end if */ @@ -235,7 +235,7 @@ done: *------------------------------------------------------------------------- */ herr_t -H5F_cwfs_advance_heap(H5F_t *f, H5HG_heap_t *heap, hbool_t add_heap) +H5F_cwfs_advance_heap(H5F_t *f, H5HG_heap_t *heap, bool add_heap) { unsigned u; /* Local index variable */ herr_t ret_value = SUCCEED; /* Return value */ |