summaryrefslogtreecommitdiffstats
path: root/src/H5Oefl.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/H5Oefl.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/H5Oefl.c')
-rw-r--r--src/H5Oefl.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/H5Oefl.c b/src/H5Oefl.c
index 30dc1d8..6673b98 100644
--- a/src/H5Oefl.c
+++ b/src/H5Oefl.c
@@ -83,8 +83,8 @@ H5O__efl_decode(H5F_t *f, H5O_t H5_ATTR_UNUSED *open_oh, unsigned H5_ATTR_UNUSED
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(f);
- HDassert(p);
+ assert(f);
+ assert(p);
if (NULL == (mesg = (H5O_efl_t *)H5MM_calloc(sizeof(H5O_efl_t))))
HGOTO_ERROR(H5E_OHDR, H5E_NOSPACE, NULL, "memory allocation failed")
@@ -208,9 +208,9 @@ H5O__efl_encode(H5F_t *f, hbool_t H5_ATTR_UNUSED disable_shared, uint8_t *p, con
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(mesg);
- HDassert(p);
+ assert(f);
+ assert(mesg);
+ assert(p);
/* Version */
*p++ = H5O_EFL_VERSION;
@@ -221,13 +221,13 @@ H5O__efl_encode(H5F_t *f, hbool_t H5_ATTR_UNUSED disable_shared, uint8_t *p, con
*p++ = 0;
/* Number of slots */
- HDassert(mesg->nalloc > 0);
+ assert(mesg->nalloc > 0);
UINT16ENCODE(p, mesg->nused); /*yes, twice*/
- HDassert(mesg->nused > 0 && mesg->nused <= mesg->nalloc);
+ assert(mesg->nused > 0 && mesg->nused <= mesg->nalloc);
UINT16ENCODE(p, mesg->nused);
/* Heap address */
- HDassert(H5_addr_defined(mesg->heap_addr));
+ assert(H5_addr_defined(mesg->heap_addr));
H5F_addr_encode(f, &p, mesg->heap_addr);
/* Encode file list */
@@ -236,7 +236,7 @@ H5O__efl_encode(H5F_t *f, hbool_t H5_ATTR_UNUSED disable_shared, uint8_t *p, con
* The name should have been added to the heap when the dataset was
* created.
*/
- HDassert(mesg->slot[u].name_offset);
+ assert(mesg->slot[u].name_offset);
H5F_ENCODE_LENGTH(f, p, mesg->slot[u].name_offset);
H5F_ENCODE_LENGTH(f, p, (hsize_t)mesg->slot[u].offset);
H5F_ENCODE_LENGTH(f, p, mesg->slot[u].size);
@@ -272,7 +272,7 @@ H5O__efl_copy(const void *_mesg, void *_dest)
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(mesg);
+ assert(mesg);
/* Allocate destination message, if necessary */
if (!dest && NULL == (dest = (H5O_efl_t *)H5MM_calloc(sizeof(H5O_efl_t))))
@@ -337,8 +337,8 @@ H5O__efl_size(const H5F_t *f, hbool_t H5_ATTR_UNUSED disable_shared, const void
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(mesg);
+ assert(f);
+ assert(mesg);
ret_value = (size_t)H5F_SIZEOF_ADDR(f) + /*heap address */
2 + /*slots allocated*/
@@ -373,7 +373,7 @@ H5O__efl_reset(void *_mesg)
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(mesg);
+ assert(mesg);
/* reset */
if (mesg->slot) {
@@ -455,8 +455,8 @@ H5O__efl_copy_file(H5F_t H5_ATTR_UNUSED *file_src, void *mesg_src, H5F_t *file_d
FUNC_ENTER_PACKAGE_TAG(H5AC__COPIED_TAG)
/* check args */
- HDassert(efl_src);
- HDassert(file_dst);
+ assert(efl_src);
+ assert(file_dst);
/* Allocate space for the destination efl */
if (NULL == (efl_dst = (H5O_efl_t *)H5MM_calloc(sizeof(H5O_efl_t))))
@@ -481,7 +481,7 @@ H5O__efl_copy_file(H5F_t H5_ATTR_UNUSED *file_src, void *mesg_src, H5F_t *file_d
/* Insert "empty" name first */
if (H5HL_insert(file_dst, heap, (size_t)1, "", &name_offset) < 0)
HGOTO_ERROR(H5E_EFL, H5E_CANTINSERT, NULL, "can't insert file name into heap")
- HDassert(0 == name_offset);
+ assert(0 == name_offset);
/* allocate array of external file entries */
if (efl_src->nalloc > 0) {
@@ -536,11 +536,11 @@ H5O__efl_debug(H5F_t H5_ATTR_UNUSED *f, const void *_mesg, FILE *stream, int ind
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(mesg);
- HDassert(stream);
- HDassert(indent >= 0);
- HDassert(fwidth >= 0);
+ assert(f);
+ assert(mesg);
+ assert(stream);
+ assert(indent >= 0);
+ assert(fwidth >= 0);
HDfprintf(stream, "%*s%-*s %" PRIuHADDR "\n", indent, "", fwidth, "Heap address:", mesg->heap_addr);