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/H5MFaggr.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/H5MFaggr.c')
-rw-r--r-- | src/H5MFaggr.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/H5MFaggr.c b/src/H5MFaggr.c index 5464b8a..80d25f2 100644 --- a/src/H5MFaggr.c +++ b/src/H5MFaggr.c @@ -212,7 +212,7 @@ H5MF__aggr_alloc(H5F_t *f, H5F_blk_aggr_t *aggr, H5F_blk_aggr_t *other_aggr, H5F /* Check if the space requested is larger than the space left in the block */ if ((size + aggr_frag_size) > aggr->size) { - htri_t extended = FALSE; /* Whether the file was extended */ + htri_t extended = false; /* Whether the file was extended */ /* Check if the block asked for is too large for 'normal' aggregator block */ if (size >= aggr->alloc_size) { @@ -401,8 +401,8 @@ done: * 2) When the aggregator is not at end of file: * Extended the block into the aggregator if it has enough space to satisfy the request * - * Return: Success: TRUE(1) - Block was extended - * FALSE(0) - Block could not be extended + * Return: Success: true(1) - Block was extended + * false(0) - Block could not be extended * Failure: FAIL * *------------------------------------------------------------------------- @@ -410,7 +410,7 @@ done: htri_t H5MF__aggr_try_extend(H5F_t * f, H5F_blk_aggr_t * aggr, H5FD_mem_t type, haddr_t blk_end, hsize_t extra_requested) { - htri_t ret_value = FALSE; /* Return value */ + htri_t ret_value = false; /* Return value */ FUNC_ENTER_PACKAGE @@ -441,7 +441,7 @@ done: aggr->addr += extra_requested; /* Indicate success */ - HGOTO_DONE(TRUE); + HGOTO_DONE(true); } /* end if */ /* * If extra_requested is above percentage threshold: @@ -454,7 +454,7 @@ done: if ((ret_value = H5F__try_extend(f, type, (aggr->addr + aggr->size), extra)) < 0) HGOTO_ERROR(H5E_RESOURCE, H5E_CANTEXTEND, FAIL, "error extending file"); - else if (ret_value == TRUE) { + else if (ret_value == true) { /* Shift the aggregator block by the extra requested */ /* (allocates the space for the extra_requested) */ aggr->addr += extra_requested; @@ -480,7 +480,7 @@ done: aggr->addr += extra_requested; /* Indicate success */ - HGOTO_DONE(TRUE); + HGOTO_DONE(true); } /* end if */ } /* end else */ } /* end if */ @@ -496,8 +496,8 @@ done: * Purpose: Check if a section adjoins an aggregator block and one can * absorb the other. * - * Return: Success: TRUE(1) - Section or aggregator can be absorbed - * FALSE(0) - Section and aggregator can not be absorbed + * Return: Success: true(1) - Section or aggregator can be absorbed + * false(0) - Section and aggregator can not be absorbed * Failure: FAIL * *------------------------------------------------------------------------- @@ -505,7 +505,7 @@ done: htri_t H5MF__aggr_can_absorb(const H5F_t *f, const H5F_blk_aggr_t *aggr, const H5MF_free_section_t *sect, H5MF_shrink_type_t *shrink) { - htri_t ret_value = FALSE; /* Return value */ + htri_t ret_value = false; /* Return value */ FUNC_ENTER_PACKAGE_NOERR @@ -536,7 +536,7 @@ done: *shrink = H5MF_SHRINK_AGGR_ABSORB_SECT; /* Indicate success */ - HGOTO_DONE(TRUE); + HGOTO_DONE(true); } /* end if */ } /* end if */ @@ -556,7 +556,7 @@ done: *------------------------------------------------------------------------- */ herr_t H5MF__aggr_absorb(const H5F_t H5_ATTR_UNUSED *f, H5F_blk_aggr_t *aggr, H5MF_free_section_t *sect, - hbool_t allow_sect_absorb) + bool allow_sect_absorb) { FUNC_ENTER_PACKAGE_NOERR @@ -799,7 +799,7 @@ done: * * Purpose: Check if the remaining space in the aggregator is at EOA * - * Return: Success: non-negative (TRUE/FALSE) + * Return: Success: non-negative (true/false) * Failure: negative * *------------------------------------------------------------------------- @@ -807,7 +807,7 @@ done: static htri_t H5MF__aggr_can_shrink_eoa(H5F_t * f, H5FD_mem_t type, H5F_blk_aggr_t * aggr) { haddr_t eoa = HADDR_UNDEF; /* EOA for the file */ - htri_t ret_value = FALSE; /* Return value */ + htri_t ret_value = false; /* Return value */ FUNC_ENTER_PACKAGE |