From c1b3255c69a11d75fd347120e4c61ba1bb811b2a Mon Sep 17 00:00:00 2001 From: mattjala <124107509+mattjala@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:04:40 -0500 Subject: [PATCH] Fix typos in context/property documentation (#4550) --- src/H5CX.c | 20 ++++++++++---------- src/H5Ppublic.h | 2 +- test/tgenprop.c | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/H5CX.c b/src/H5CX.c index bbd205ca0f6..f23c90486e3 100644 --- a/src/H5CX.c +++ b/src/H5CX.c @@ -289,18 +289,18 @@ typedef struct H5CX_t { (H5D_XFER_COLL_CHUNK_MULTI_RATIO_IND_NAME) */ bool mpio_coll_chunk_multi_ratio_ind_set; /* Whether instrumented "collective chunk multi ratio ind" value is set */ - bool mpio_coll_rank0_bcast; /* Instrumented "collective chunk multi ratio ind" value - (H5D_XFER_COLL_CHUNK_MULTI_RATIO_IND_NAME) */ - bool mpio_coll_rank0_bcast_set; /* Whether instrumented "collective chunk multi ratio ind" value is set */ -#endif /* H5_HAVE_INSTRUMENTED_LIBRARY */ -#endif /* H5_HAVE_PARALLEL */ - uint32_t no_selection_io_cause; /* Reason for not performing selection I/O - (H5D_XFER_NO_SELECTION_IO_CAUSE_NAME) */ - bool no_selection_io_cause_set; /* Whether reason for not performing selection I/O is set */ + bool mpio_coll_rank0_bcast; /* Instrumented "collective rank 0 broadcast" value + (H5D_XFER_COLL_RANK0_BCAST_NAME) */ + bool mpio_coll_rank0_bcast_set; /* Whether instrumented "collective rank 0 broadcast" value is set */ +#endif /* H5_HAVE_INSTRUMENTED_LIBRARY */ +#endif /* H5_HAVE_PARALLEL */ + uint32_t no_selection_io_cause; /* Reason for not performing selection I/O + (H5D_XFER_NO_SELECTION_IO_CAUSE_NAME) */ + bool no_selection_io_cause_set; /* Whether reason for not performing selection I/O is set */ bool no_selection_io_cause_valid; /* Whether reason for not performing selection I/O is valid */ - uint32_t - actual_selection_io_mode; /* Actual selection I/O mode used (H5D_ACTUAL_SELECTION_IO_MODE_NAME) */ + uint32_t actual_selection_io_mode; /* Actual selection I/O mode used + (H5D_XFER_ACTUAL_SELECTION_IO_MODE_NAME) */ bool actual_selection_io_mode_set; /* Whether actual selection I/O mode is set */ bool actual_selection_io_mode_valid; /* Whether actual selection I/O mode is valid */ diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h index 48f6098af58..56d9c138f5c 100644 --- a/src/H5Ppublic.h +++ b/src/H5Ppublic.h @@ -287,7 +287,7 @@ typedef herr_t (*H5P_cls_copy_func_t)(hid_t new_prop_id, hid_t old_prop_id, void /** * \brief Callback function for H5Pcreate_class() * - * \param[in] prop_id The identifier of the property list class being created + * \param[in] prop_id The identifier of the property list class being closed * \param[in] close_data User pointer to any close data required * \return \herr_t * diff --git a/test/tgenprop.c b/test/tgenprop.c index 586ab335e7f..4f4f60e79ab 100644 --- a/test/tgenprop.c +++ b/test/tgenprop.c @@ -413,9 +413,9 @@ test_genprop_cls_cpy_cb1(hid_t new_list_id, hid_t H5_ATTR_UNUSED old_list_id, vo } static herr_t -test_genprop_cls_cls_cb1(hid_t list_id, void *create_data) +test_genprop_cls_cls_cb1(hid_t list_id, void *close_data) { - count_data_t *cdata = (count_data_t *)create_data; + count_data_t *cdata = (count_data_t *)close_data; cdata->count++; cdata->id = list_id; @@ -1006,9 +1006,9 @@ static prop_cb_info prop3_cb_info; /* Callback statistics for property #3 */ ** ****************************************************************/ static herr_t -test_genprop_cls_cpy_cb2(hid_t new_list_id, hid_t H5_ATTR_UNUSED old_list_id, void *create_data) +test_genprop_cls_cpy_cb2(hid_t new_list_id, hid_t H5_ATTR_UNUSED old_list_id, void *copy_data) { - count_data_t *cdata = (count_data_t *)create_data; + count_data_t *cdata = (count_data_t *)copy_data; cdata->count++; cdata->id = new_list_id;