summaryrefslogtreecommitdiffstats
path: root/src/H5Fmount.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:31:56 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:31:56 (GMT)
commit7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch)
tree44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /src/H5Fmount.c
parent622fcbd13881fbc58bbeaed3062583b759f5e864 (diff)
downloadhdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.zip
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.gz
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.bz2
Rename HDassert() to assert() (#3191)
* Change HDassert to assert * Fix bin/make_err
Diffstat (limited to 'src/H5Fmount.c')
-rw-r--r--src/H5Fmount.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/H5Fmount.c b/src/H5Fmount.c
index ac193d7..73c41c2 100644
--- a/src/H5Fmount.c
+++ b/src/H5Fmount.c
@@ -47,7 +47,7 @@ H5F__close_mounts(H5F_t *f)
FUNC_ENTER_PACKAGE
- HDassert(f);
+ assert(f);
/* Unmount all child files. Loop backwards to avoid having to adjust u when
* a file is unmounted. Note that we rely on unsigned u "wrapping around"
@@ -75,7 +75,7 @@ H5F__close_mounts(H5F_t *f)
}
}
- HDassert(f->nmounts == 0);
+ assert(f->nmounts == 0);
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -111,10 +111,10 @@ H5F_mount(const H5G_loc_t *loc, const char *name, H5F_t *child, hid_t H5_ATTR_UN
FUNC_ENTER_NOAPI(FAIL)
- HDassert(loc);
- HDassert(name && *name);
- HDassert(child);
- HDassert(TRUE == H5P_isa_class(plist_id, H5P_FILE_MOUNT));
+ assert(loc);
+ assert(name && *name);
+ assert(child);
+ assert(TRUE == H5P_isa_class(plist_id, H5P_FILE_MOUNT));
/* Set up group location to fill in */
mp_loc.oloc = &mp_oloc;
@@ -151,11 +151,11 @@ H5F_mount(const H5G_loc_t *loc, const char *name, H5F_t *child, hid_t H5_ATTR_UN
* "took over" the group location - QAK)
*/
parent = H5G_fileof(mount_point);
- HDassert(parent);
+ assert(parent);
mp_loc.oloc = H5G_oloc(mount_point);
- HDassert(mp_loc.oloc);
+ assert(mp_loc.oloc);
mp_loc.path = H5G_nameof(mount_point);
- HDassert(mp_loc.path);
+ assert(mp_loc.path);
for (ancestor = parent; ancestor; ancestor = ancestor->parent)
if (ancestor->shared == child->shared)
HGOTO_ERROR(H5E_FILE, H5E_MOUNT, FAIL, "mount would introduce a cycle")
@@ -275,8 +275,8 @@ H5F_unmount(const H5G_loc_t *loc, const char *name)
FUNC_ENTER_NOAPI(FAIL)
- HDassert(loc);
- HDassert(name && *name);
+ assert(loc);
+ assert(name && *name);
/* Set up mount point location to fill in */
mp_loc.oloc = &mp_oloc;
@@ -348,7 +348,7 @@ H5F_unmount(const H5G_loc_t *loc, const char *name)
* Could be different due to the shared mount table. */
parent = child->parent;
} /* end else */
- HDassert(child_idx >= 0);
+ assert(child_idx >= 0);
/* Save the information about the child from the mount table */
child_group = parent->shared->mtab.child[child_idx].group;
@@ -411,7 +411,7 @@ H5F_is_mount(const H5F_t *file)
FUNC_ENTER_NOAPI_NOINIT_NOERR
- HDassert(file);
+ assert(file);
if (file->parent != NULL)
ret_value = TRUE;
@@ -442,9 +442,9 @@ H5F__mount_count_ids_recurse(H5F_t *f, unsigned *nopen_files, unsigned *nopen_ob
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
- HDassert(f);
- HDassert(nopen_files);
- HDassert(nopen_objs);
+ assert(f);
+ assert(nopen_files);
+ assert(nopen_objs);
/* If this file is still open, increment number of file IDs open */
if (H5F_ID_EXISTS(f))
@@ -489,9 +489,9 @@ H5F__mount_count_ids(H5F_t *f, unsigned *nopen_files, unsigned *nopen_objs)
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
- HDassert(f);
- HDassert(nopen_files);
- HDassert(nopen_objs);
+ assert(f);
+ assert(nopen_files);
+ assert(nopen_objs);
/* Find the top file in the mounting hierarchy */
while (f->parent)
@@ -525,7 +525,7 @@ H5F__flush_mounts_recurse(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(f);
+ assert(f);
/* Flush all child files, not stopping for errors */
for (u = 0; u < f->shared->mtab.nmounts; u++)
@@ -564,7 +564,7 @@ H5F_flush_mounts(H5F_t *f)
FUNC_ENTER_NOAPI(FAIL)
/* Sanity check */
- HDassert(f);
+ assert(f);
/* Find the top file in the mount hierarchy */
while (f->parent)
@@ -604,7 +604,7 @@ H5F_traverse_mount(H5O_loc_t *oloc /*in,out*/)
FUNC_ENTER_NOAPI(FAIL)
/* Sanity check */
- HDassert(oloc);
+ assert(oloc);
/*
* The loop is necessary because we might have file1 mounted at the root