summaryrefslogtreecommitdiffstats
path: root/src/H5MFsection.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/H5MFsection.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/H5MFsection.c')
-rw-r--r--src/H5MFsection.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/H5MFsection.c b/src/H5MFsection.c
index ede7912..3b81960 100644
--- a/src/H5MFsection.c
+++ b/src/H5MFsection.c
@@ -340,7 +340,7 @@ done:
*
* Note: Second section must be "after" first section
*
- * Return: Success: non-negative (TRUE/FALSE)
+ * Return: Success: non-negative (true/false)
* Failure: negative
*
*-------------------------------------------------------------------------
@@ -412,7 +412,7 @@ done:
*
* Purpose: Can this section shrink the container?
*
- * Return: Success: non-negative (TRUE/FALSE)
+ * Return: Success: non-negative (true/false)
* Failure: negative
*
*-------------------------------------------------------------------------
@@ -450,12 +450,12 @@ H5MF__sect_simple_can_shrink(const H5FS_section_info_t *_sect, void *_udata)
#endif /* H5MF_ALLOC_DEBUG_MORE */
/* Indicate shrinking can occur */
- HGOTO_DONE(TRUE);
+ HGOTO_DONE(true);
} /* end if */
else {
/* Shrinking can't occur if the 'eoa_shrink_only' flag is set and we're not shrinking the EOA */
if (udata->allow_eoa_shrink_only)
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
/* Check if this section is allowed to merge with metadata aggregation block */
if (udata->f->shared->fs_aggr_merge[udata->alloc_type] & H5F_FS_MERGE_METADATA) {
@@ -475,7 +475,7 @@ H5MF__sect_simple_can_shrink(const H5FS_section_info_t *_sect, void *_udata)
#endif /* H5MF_ALLOC_DEBUG_MORE */
/* Indicate shrinking can occur */
- HGOTO_DONE(TRUE);
+ HGOTO_DONE(true);
} /* end if */
} /* end if */
@@ -498,13 +498,13 @@ H5MF__sect_simple_can_shrink(const H5FS_section_info_t *_sect, void *_udata)
#endif /* H5MF_ALLOC_DEBUG_MORE */
/* Indicate shrinking can occur */
- HGOTO_DONE(TRUE);
+ HGOTO_DONE(true);
} /* end if */
} /* end if */
} /* end else */
/* Set return value */
- ret_value = FALSE;
+ ret_value = false;
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -641,7 +641,7 @@ done:
* Note: Second section must be "after" first section
* The "merged" section cannot cross page boundary.
*
- * Return: Success: non-negative (TRUE/FALSE)
+ * Return: Success: non-negative (true/false)
* Failure: negative
*
*-------------------------------------------------------------------------
@@ -652,7 +652,7 @@ H5MF__sect_small_can_merge(const H5FS_section_info_t *_sect1, const H5FS_section
const H5MF_free_section_t *sect1 = (const H5MF_free_section_t *)_sect1; /* File free section */
const H5MF_free_section_t *sect2 = (const H5MF_free_section_t *)_sect2; /* File free section */
H5MF_sect_ud_t *udata = (H5MF_sect_ud_t *)_udata; /* User data for callback */
- htri_t ret_value = FALSE; /* Return value */
+ htri_t ret_value = false; /* Return value */
FUNC_ENTER_PACKAGE_NOERR
@@ -668,7 +668,7 @@ H5MF__sect_small_can_merge(const H5FS_section_info_t *_sect1, const H5FS_section
/* If they are on different pages, couldn't merge */
if ((sect1->sect_info.addr / udata->f->shared->fs_page_size) !=
(((sect2->sect_info.addr + sect2->sect_info.size - 1) / udata->f->shared->fs_page_size)))
- ret_value = FALSE;
+ ret_value = false;
#ifdef H5MF_ALLOC_DEBUG_MORE
fprintf(stderr, "%s: Leaving: ret_value = %d\n", __func__, ret_value);
@@ -747,7 +747,7 @@ done:
*
* Note: Second section must be "after" first section
*
- * Return: Success: non-negative (TRUE/FALSE)
+ * Return: Success: non-negative (true/false)
* Failure: negative
*
*-------------------------------------------------------------------------
@@ -758,7 +758,7 @@ H5MF__sect_large_can_merge(const H5FS_section_info_t *_sect1, const H5FS_section
{
const H5MF_free_section_t *sect1 = (const H5MF_free_section_t *)_sect1; /* File free section */
const H5MF_free_section_t *sect2 = (const H5MF_free_section_t *)_sect2; /* File free section */
- htri_t ret_value = FALSE; /* Return value */
+ htri_t ret_value = false; /* Return value */
FUNC_ENTER_PACKAGE_NOERR
@@ -821,7 +821,7 @@ done:
*
* Purpose: Can this section shrink the container?
*
- * Return: Success: non-negative (TRUE/FALSE)
+ * Return: Success: non-negative (true/false)
* Failure: negative
*
*-------------------------------------------------------------------------
@@ -833,7 +833,7 @@ H5MF__sect_large_can_shrink(const H5FS_section_info_t *_sect, void *_udata)
H5MF_sect_ud_t *udata = (H5MF_sect_ud_t *)_udata; /* User data for callback */
haddr_t eoa; /* End of address space in the file */
haddr_t end; /* End of section to extend */
- htri_t ret_value = FALSE; /* Return value */
+ htri_t ret_value = false; /* Return value */
FUNC_ENTER_PACKAGE
@@ -860,7 +860,7 @@ H5MF__sect_large_can_shrink(const H5FS_section_info_t *_sect, void *_udata)
#endif /* H5MF_ALLOC_DEBUG_MORE */
/* Indicate shrinking can occur */
- HGOTO_DONE(TRUE);
+ HGOTO_DONE(true);
} /* end if */
done: