Skip to content

Commit

Permalink
Replace FL macros in H5D
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Dec 27, 2024
1 parent 02073bf commit 38fba55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/H5D.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ static herr_t H5D__set_extent_api_common(hid_t dset_id, const hsize_t size[], vo
/*****************************/

/* Declare extern free list to manage the H5S_sel_iter_t struct */
H5FL_EXTERN(H5S_sel_iter_t);
H5FL_EXTERN_MT(H5S_sel_iter_t);

/* Declare extern the free list to manage blocks of type conversion data */
H5FL_BLK_EXTERN(type_conv);
H5FL_BLK_EXTERN_MT(type_conv);

/*******************/
/* Local Variables */
Expand Down Expand Up @@ -1635,7 +1635,7 @@ H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_
HGOTO_ERROR(H5E_DATASET, H5E_CANTCOUNT, FAIL, "unable to get number of elements in selection");

/* Allocate the selection iterator */
if (NULL == (iter = H5FL_MALLOC(H5S_sel_iter_t)))
if (NULL == (iter = H5FL_MALLOC_MT(H5S_sel_iter_t)))
HGOTO_ERROR(H5E_DATASET, H5E_CANTALLOC, FAIL, "can't allocate selection iterator");

/* Initialize selection iterator */
Expand Down Expand Up @@ -1674,7 +1674,7 @@ H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_
if (iter_init && H5S_SELECT_ITER_RELEASE(iter) < 0)
HDONE_ERROR(H5E_DATASET, H5E_CANTFREE, FAIL, "can't release selection iterator");
if (iter)
iter = H5FL_FREE(H5S_sel_iter_t, iter);
iter = H5FL_FREE_MT(H5S_sel_iter_t, iter);

FUNC_LEAVE_API(ret_value)
} /* H5Dscatter() */
Expand Down Expand Up @@ -1741,7 +1741,7 @@ H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no callback supplied and destination buffer too small");

/* Allocate the selection iterator */
if (NULL == (iter = H5FL_MALLOC(H5S_sel_iter_t)))
if (NULL == (iter = H5FL_MALLOC_MT(H5S_sel_iter_t)))
HGOTO_ERROR(H5E_DATASET, H5E_CANTALLOC, FAIL, "can't allocate selection iterator");

/* Initialize selection iterator */
Expand Down Expand Up @@ -1770,7 +1770,7 @@ H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf
if (iter_init && H5S_SELECT_ITER_RELEASE(iter) < 0)
HDONE_ERROR(H5E_DATASET, H5E_CANTFREE, FAIL, "can't release selection iterator");
if (iter)
iter = H5FL_FREE(H5S_sel_iter_t, iter);
iter = H5FL_FREE_MT(H5S_sel_iter_t, iter);

FUNC_LEAVE_API(ret_value)
} /* H5Dgather() */
Expand Down

0 comments on commit 38fba55

Please sign in to comment.