summaryrefslogtreecommitdiffstats
path: root/src/H5Fmount.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/H5Fmount.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/H5Fmount.c')
-rw-r--r--src/H5Fmount.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5Fmount.c b/src/H5Fmount.c
index ef0aa7b..47345f2 100644
--- a/src/H5Fmount.c
+++ b/src/H5Fmount.c
@@ -108,7 +108,7 @@ H5F_mount(const H5G_loc_t *loc, const char *name, H5F_t *child, hid_t H5_ATTR_UN
assert(loc);
assert(name && *name);
assert(child);
- assert(TRUE == H5P_isa_class(plist_id, H5P_FILE_MOUNT));
+ assert(true == H5P_isa_class(plist_id, H5P_FILE_MOUNT));
/* Set up group location to fill in */
mp_loc.oloc = &mp_oloc;
@@ -129,7 +129,7 @@ H5F_mount(const H5G_loc_t *loc, const char *name, H5F_t *child, hid_t H5_ATTR_UN
* and remove the mount as soon as we exit this function. Prevent the
* user from doing this.
*/
- if (mp_loc.oloc->holding_file != FALSE)
+ if (mp_loc.oloc->holding_file != false)
HGOTO_ERROR(H5E_FILE, H5E_MOUNT, FAIL, "mount path cannot contain links to external files");
/* Open the mount point group */
@@ -259,7 +259,7 @@ H5F_unmount(const H5G_loc_t *loc, const char *name)
H5G_name_t mp_path; /* Mount point group hier. path */
H5O_loc_t mp_oloc; /* Mount point object location */
H5G_loc_t mp_loc; /* entry used to open mount point*/
- hbool_t mp_loc_setup = FALSE; /* Whether mount point location is set up */
+ bool mp_loc_setup = false; /* Whether mount point location is set up */
H5G_loc_t root_loc; /* Group location of root of file to unmount */
int child_idx; /* Index of child in parent's mtab */
herr_t ret_value = SUCCEED; /*return value */
@@ -281,7 +281,7 @@ H5F_unmount(const H5G_loc_t *loc, const char *name)
*/
if (H5G_loc_find(loc, name, &mp_loc /*out*/) < 0)
HGOTO_ERROR(H5E_FILE, H5E_NOTFOUND, FAIL, "group not found");
- mp_loc_setup = TRUE;
+ mp_loc_setup = true;
child = mp_loc.oloc->file;
mnt_oloc = H5G_oloc(child->shared->root_grp);
child_idx = -1;
@@ -330,7 +330,7 @@ H5F_unmount(const H5G_loc_t *loc, const char *name)
/* Found the correct index, set the info about the child */
child_idx = (int)md;
H5G_loc_free(&mp_loc);
- mp_loc_setup = FALSE;
+ mp_loc_setup = false;
mp_loc.oloc = mnt_oloc;
mp_loc.path = H5G_nameof(parent->shared->mtab.child[md].group);
child = parent->shared->mtab.child[child_idx].file;
@@ -387,24 +387,24 @@ done:
*
* Purpose: Check if a file is mounted within another file.
*
- * Return: Success: TRUE/FALSE
+ * Return: Success: true/false
* Failure: (can't happen)
*
*-------------------------------------------------------------------------
*/
-hbool_t
+bool
H5F_is_mount(const H5F_t *file)
{
- hbool_t ret_value = FALSE; /* Return value */
+ bool ret_value = false; /* Return value */
FUNC_ENTER_NOAPI_NOINIT_NOERR
assert(file);
if (file->parent != NULL)
- ret_value = TRUE;
+ ret_value = true;
else
- ret_value = FALSE;
+ ret_value = false;
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_is_mount() */