summaryrefslogtreecommitdiffstats
path: root/src/H5Glink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Glink.c')
-rw-r--r--src/H5Glink.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/H5Glink.c b/src/H5Glink.c
index 37aad84..7d14a9e 100644
--- a/src/H5Glink.c
+++ b/src/H5Glink.c
@@ -211,10 +211,10 @@ H5G__ent_to_link(H5O_link_t *lnk, const H5HL_t *heap, const H5G_entry_t *ent, co
FUNC_ENTER_PACKAGE
/* check arguments */
- HDassert(lnk);
- HDassert(heap);
- HDassert(ent);
- HDassert(name);
+ assert(lnk);
+ assert(heap);
+ assert(ent);
+ assert(name);
/* Set (default) common info for link */
lnk->cset = H5F_DEFAULT_CSET;
@@ -277,8 +277,8 @@ H5G_link_to_info(const H5O_loc_t *link_loc, const H5O_link_t *lnk, H5L_info2_t *
FUNC_ENTER_NOAPI(FAIL)
/* Sanity check */
- HDassert(link_loc);
- HDassert(lnk);
+ assert(link_loc);
+ assert(lnk);
/* Get information from the link */
if (info) {
@@ -358,9 +358,9 @@ H5G__link_to_loc(const H5G_loc_t *grp_loc, const H5O_link_t *lnk, H5G_loc_t *obj
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(grp_loc);
- HDassert(lnk);
- HDassert(obj_loc);
+ assert(grp_loc);
+ assert(lnk);
+ assert(obj_loc);
/*
* Build location from the link
@@ -404,14 +404,14 @@ H5G__link_sort_table(H5G_link_table_t *ltable, H5_index_t idx_type, H5_iter_orde
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
- HDassert(ltable);
+ assert(ltable);
/* Can't sort when empty since the links table will be NULL */
if (0 == ltable->nlinks)
HGOTO_DONE(ret_value);
/* This should never be NULL if the number of links is non-zero */
- HDassert(ltable->lnks);
+ assert(ltable->lnks);
/* Pick appropriate sorting routine */
if (idx_type == H5_INDEX_NAME) {
@@ -420,16 +420,16 @@ H5G__link_sort_table(H5G_link_table_t *ltable, H5_index_t idx_type, H5_iter_orde
else if (order == H5_ITER_DEC)
qsort(ltable->lnks, ltable->nlinks, sizeof(H5O_link_t), H5G__link_cmp_name_dec);
else
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
} /* end if */
else {
- HDassert(idx_type == H5_INDEX_CRT_ORDER);
+ assert(idx_type == H5_INDEX_CRT_ORDER);
if (order == H5_ITER_INC)
qsort(ltable->lnks, ltable->nlinks, sizeof(H5O_link_t), H5G__link_cmp_corder_inc);
else if (order == H5_ITER_DEC)
qsort(ltable->lnks, ltable->nlinks, sizeof(H5O_link_t), H5G__link_cmp_corder_dec);
else
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
} /* end else */
done:
@@ -460,8 +460,8 @@ H5G__link_iterate_table(const H5G_link_table_t *ltable, hsize_t skip, hsize_t *l
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
- HDassert(ltable);
- HDassert(op);
+ assert(ltable);
+ assert(op);
/* Skip over links, if requested */
if (last_lnk)
@@ -507,7 +507,7 @@ H5G__link_release_table(H5G_link_table_t *ltable)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(ltable);
+ assert(ltable);
/* Release link info, if any */
if (ltable->nlinks > 0) {
@@ -520,7 +520,7 @@ H5G__link_release_table(H5G_link_table_t *ltable)
H5MM_xfree(ltable->lnks);
} /* end if */
else
- HDassert(ltable->lnks == NULL);
+ assert(ltable->lnks == NULL);
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -548,7 +548,7 @@ H5G__link_name_replace(H5F_t *file, H5RS_str_t *grp_full_path_r, const H5O_link_
FUNC_ENTER_PACKAGE
/* check arguments */
- HDassert(file);
+ assert(file);
/* Search the open IDs and replace names for unlinked object */
if (grp_full_path_r) {