summaryrefslogtreecommitdiffstats
path: root/src/H5FAhdr.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/H5FAhdr.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/H5FAhdr.c')
-rw-r--r--src/H5FAhdr.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/H5FAhdr.c b/src/H5FAhdr.c
index 9d5ce3b..0bf9da1 100644
--- a/src/H5FAhdr.c
+++ b/src/H5FAhdr.c
@@ -90,7 +90,7 @@ H5FA__hdr_alloc(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Check arguments */
- HDassert(f);
+ assert(f);
/* Allocate space for the shared information */
if (NULL == (hdr = H5FL_CALLOC(H5FA_hdr_t)))
@@ -135,7 +135,7 @@ H5FA__hdr_init(H5FA_hdr_t *hdr, void *ctx_udata)
FUNC_ENTER_PACKAGE
/* Check arguments */
- HDassert(hdr);
+ assert(hdr);
/* Set size of header on disk (locally and in statistics) */
hdr->stats.hdr_size = hdr->size = H5FA_HEADER_SIZE_HDR(hdr);
@@ -176,8 +176,8 @@ H5FA__hdr_create(H5F_t *f, const H5FA_create_t *cparam, void *ctx_udata)
FUNC_ENTER_PACKAGE
/* Check arguments */
- HDassert(f);
- HDassert(cparam);
+ assert(f);
+ assert(cparam);
#ifndef NDEBUG
{
@@ -271,7 +271,7 @@ H5FA__hdr_incr(H5FA_hdr_t *hdr)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(hdr);
+ assert(hdr);
/* Mark header as un-evictable when something is depending on it */
if (hdr->rc == 0)
@@ -305,15 +305,15 @@ H5FA__hdr_decr(H5FA_hdr_t *hdr)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(hdr);
- HDassert(hdr->rc);
+ assert(hdr);
+ assert(hdr->rc);
/* Decrement reference count on shared header */
hdr->rc--;
/* Mark header as evictable again when nothing depend on it */
if (hdr->rc == 0) {
- HDassert(hdr->file_rc == 0);
+ assert(hdr->file_rc == 0);
if (H5AC_unpin_entry(hdr) < 0)
HGOTO_ERROR(H5E_FARRAY, H5E_CANTUNPIN, FAIL, "unable to unpin fixed array header")
}
@@ -340,7 +340,7 @@ H5FA__hdr_fuse_incr(H5FA_hdr_t *hdr)
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
- HDassert(hdr);
+ assert(hdr);
/* Increment file reference count on shared header */
hdr->file_rc++;
@@ -369,8 +369,8 @@ H5FA__hdr_fuse_decr(H5FA_hdr_t *hdr)
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
- HDassert(hdr);
- HDassert(hdr->file_rc);
+ assert(hdr);
+ assert(hdr->file_rc);
/* Decrement file reference count on shared header */
hdr->file_rc--;
@@ -401,7 +401,7 @@ H5FA__hdr_modified(H5FA_hdr_t *hdr)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(hdr);
+ assert(hdr);
/* Mark header as dirty in cache */
if (H5AC_mark_entry_dirty(hdr) < 0)
@@ -433,11 +433,11 @@ H5FA__hdr_protect(H5F_t *f, haddr_t fa_addr, void *ctx_udata, unsigned flags)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(f);
- HDassert(H5_addr_defined(fa_addr));
+ assert(f);
+ assert(H5_addr_defined(fa_addr));
/* only the H5AC__READ_ONLY_FLAG is permitted */
- HDassert((flags & (unsigned)(~H5AC__READ_ONLY_FLAG)) == 0);
+ assert((flags & (unsigned)(~H5AC__READ_ONLY_FLAG)) == 0);
/* Set up user data for cache callbacks */
udata.f = f;
@@ -489,7 +489,7 @@ H5FA__hdr_unprotect(H5FA_hdr_t *hdr, unsigned cache_flags)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(hdr);
+ assert(hdr);
/* Unprotect the header */
if (H5AC_unprotect(hdr->f, H5AC_FARRAY_HDR, hdr->addr, hdr, cache_flags) < 0)
@@ -521,8 +521,8 @@ H5FA__hdr_delete(H5FA_hdr_t *hdr)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(hdr);
- HDassert(!hdr->file_rc);
+ assert(hdr);
+ assert(!hdr->file_rc);
#ifndef NDEBUG
@@ -533,8 +533,8 @@ H5FA__hdr_delete(H5FA_hdr_t *hdr)
HGOTO_ERROR(H5E_FARRAY, H5E_CANTGET, FAIL, "unable to check metadata cache status for array header")
/* Sanity checks on array header */
- HDassert(hdr_status & H5AC_ES__IN_CACHE);
- HDassert(hdr_status & H5AC_ES__IS_PROTECTED);
+ assert(hdr_status & H5AC_ES__IN_CACHE);
+ assert(hdr_status & H5AC_ES__IS_PROTECTED);
#endif /* NDEBUG */
@@ -576,8 +576,8 @@ H5FA__hdr_dest(H5FA_hdr_t *hdr)
FUNC_ENTER_PACKAGE
/* Check arguments */
- HDassert(hdr);
- HDassert(hdr->rc == 0);
+ assert(hdr);
+ assert(hdr->rc == 0);
/* Destroy the callback context */
if (hdr->cb_ctx) {