summaryrefslogtreecommitdiffstats
path: root/src/H5Osdspace.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/H5Osdspace.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/H5Osdspace.c')
-rw-r--r--src/H5Osdspace.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/H5Osdspace.c b/src/H5Osdspace.c
index 9bf5d6f..c71a839 100644
--- a/src/H5Osdspace.c
+++ b/src/H5Osdspace.c
@@ -115,8 +115,8 @@ H5O__sdspace_decode(H5F_t *f, H5O_t H5_ATTR_UNUSED *open_oh, unsigned H5_ATTR_UN
FUNC_ENTER_PACKAGE
- HDassert(f);
- HDassert(p);
+ assert(f);
+ assert(p);
if (NULL == (sdim = H5FL_CALLOC(H5S_extent_t)))
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTALLOC, NULL, "dataspace structure allocation failed")
@@ -255,13 +255,13 @@ H5O__sdspace_encode(H5F_t *f, uint8_t *p, const void *_mesg)
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(p);
- HDassert(sdim);
+ assert(f);
+ assert(p);
+ assert(sdim);
/* Version */
- HDassert(sdim->version > 0);
- HDassert(sdim->type != H5S_NULL || sdim->version >= H5O_SDSPACE_VERSION_2);
+ assert(sdim->version > 0);
+ assert(sdim->type != H5S_NULL || sdim->version >= H5O_SDSPACE_VERSION_2);
*p++ = (uint8_t)sdim->version;
/* Rank */
@@ -323,7 +323,7 @@ H5O__sdspace_copy(const void *_mesg, void *_dest)
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(mesg);
+ assert(mesg);
if (!dest && NULL == (dest = H5FL_CALLOC(H5S_extent_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
@@ -425,7 +425,7 @@ H5O__sdspace_free(void *mesg)
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(mesg);
+ assert(mesg);
mesg = H5FL_FREE(H5S_extent_t, mesg);
@@ -458,10 +458,10 @@ H5O__sdspace_pre_copy_file(H5F_t H5_ATTR_UNUSED *file_src, const void *mesg_src,
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(file_src);
- HDassert(src_space_extent);
- HDassert(cpy_info);
- HDassert(cpy_info->file_dst);
+ assert(file_src);
+ assert(src_space_extent);
+ assert(cpy_info);
+ assert(cpy_info->file_dst);
/* Check to ensure that the version of the message to be copied does not exceed
the message version allowed by the destination file's high bound */
@@ -514,11 +514,11 @@ H5O__sdspace_debug(H5F_t H5_ATTR_UNUSED *f, const void *mesg, FILE *stream, int
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(sdim);
- HDassert(stream);
- HDassert(indent >= 0);
- HDassert(fwidth >= 0);
+ assert(f);
+ assert(sdim);
+ assert(stream);
+ assert(indent >= 0);
+ assert(fwidth >= 0);
HDfprintf(stream, "%*s%-*s %lu\n", indent, "", fwidth, "Rank:", (unsigned long)(sdim->rank));