summaryrefslogtreecommitdiffstats
path: root/src/H5Ostab.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/H5Ostab.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/H5Ostab.c')
-rw-r--r--src/H5Ostab.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/H5Ostab.c b/src/H5Ostab.c
index 3b7417d..ecb55b2 100644
--- a/src/H5Ostab.c
+++ b/src/H5Ostab.c
@@ -90,8 +90,8 @@ H5O__stab_decode(H5F_t *f, H5O_t H5_ATTR_UNUSED *open_oh, unsigned H5_ATTR_UNUSE
FUNC_ENTER_PACKAGE
- HDassert(f);
- HDassert(p);
+ assert(f);
+ assert(p);
if (NULL == (stab = H5FL_CALLOC(H5O_stab_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
@@ -133,9 +133,9 @@ H5O__stab_encode(H5F_t *f, hbool_t H5_ATTR_UNUSED disable_shared, uint8_t *p, co
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(p);
- HDassert(stab);
+ assert(f);
+ assert(p);
+ assert(stab);
/* encode */
H5F_addr_encode(f, &p, stab->btree_addr);
@@ -169,7 +169,7 @@ H5O__stab_copy(const void *_mesg, void *_dest)
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(stab);
+ assert(stab);
if (!dest && NULL == (dest = H5FL_MALLOC(H5O_stab_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
@@ -229,7 +229,7 @@ H5O__stab_free(void *mesg)
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(mesg);
+ assert(mesg);
mesg = H5FL_FREE(H5O_stab_t, mesg);
@@ -256,8 +256,8 @@ H5O__stab_delete(H5F_t *f, H5O_t H5_ATTR_UNUSED *open_oh, void *mesg)
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(f);
- HDassert(mesg);
+ assert(f);
+ assert(mesg);
/* Free the file space for the symbol table */
if (H5G__stab_delete(f, (const H5O_stab_t *)mesg) < 0)
@@ -295,8 +295,8 @@ H5O__stab_copy_file(H5F_t *file_src, void *native_src, H5F_t *file_dst,
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(stab_src);
- HDassert(file_dst);
+ assert(stab_src);
+ assert(file_dst);
/* Allocate space for the destination stab */
if (NULL == (stab_dst = H5FL_MALLOC(H5O_stab_t)))
@@ -356,11 +356,11 @@ H5O__stab_post_copy_file(const H5O_loc_t *src_oloc, const void *mesg_src, H5O_lo
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(stab_src);
- HDassert(H5_addr_defined(dst_oloc->addr));
- HDassert(dst_oloc->file);
- HDassert(stab_dst);
- HDassert(cpy_info);
+ assert(stab_src);
+ assert(H5_addr_defined(dst_oloc->addr));
+ assert(dst_oloc->file);
+ assert(stab_dst);
+ assert(cpy_info);
/* If we are performing a 'shallow hierarchy' copy, get out now */
if (cpy_info->max_depth >= 0 && cpy_info->curr_depth >= cpy_info->max_depth)
@@ -401,11 +401,11 @@ H5O__stab_debug(H5F_t H5_ATTR_UNUSED *f, const void *_mesg, FILE *stream, int in
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(stab);
- HDassert(stream);
- HDassert(indent >= 0);
- HDassert(fwidth >= 0);
+ assert(f);
+ assert(stab);
+ assert(stream);
+ assert(indent >= 0);
+ assert(fwidth >= 0);
HDfprintf(stream, "%*s%-*s %" PRIuHADDR "\n", indent, "", fwidth, "B-tree address:", stab->btree_addr);