@@ -109,24 +109,20 @@ typedef struct {
109109/* Local Prototypes */
110110/********************/
111111static herr_t H5O__attr_to_dense_cb (H5O_t * oh , H5O_mesg_t * mesg , unsigned H5_ATTR_UNUSED sequence ,
112- unsigned * oh_modified , void * _udata );
112+ void * _udata );
113113static htri_t H5O__attr_find_opened_attr (const H5O_loc_t * loc , H5A_t * * attr , const char * name_to_open );
114- static herr_t H5O__attr_open_cb (H5O_t * oh , H5O_mesg_t * mesg , unsigned sequence ,
115- unsigned H5_ATTR_UNUSED * oh_modified , void * _udata );
114+ static herr_t H5O__attr_open_cb (H5O_t * oh , H5O_mesg_t * mesg , unsigned sequence , void * _udata );
116115static herr_t H5O__attr_open_by_idx_cb (const H5A_t * attr , void * _ret_attr );
117- static herr_t H5O__attr_write_cb (H5O_t * oh , H5O_mesg_t * mesg , unsigned H5_ATTR_UNUSED sequence ,
118- unsigned * oh_modified , void * _udata );
116+ static herr_t H5O__attr_write_cb (H5O_t * oh , H5O_mesg_t * mesg , unsigned H5_ATTR_UNUSED sequence , void * _udata );
119117static herr_t H5O__attr_rename_chk_cb (H5O_t H5_ATTR_UNUSED * oh , H5O_mesg_t * mesg ,
120- unsigned H5_ATTR_UNUSED sequence , unsigned H5_ATTR_UNUSED * oh_modified ,
121- void * _udata );
118+ unsigned H5_ATTR_UNUSED sequence , void * _udata );
122119static herr_t H5O__attr_rename_mod_cb (H5O_t * oh , H5O_mesg_t * mesg , unsigned H5_ATTR_UNUSED sequence ,
123- unsigned * oh_modified , void * _udata );
120+ void * _udata );
124121static herr_t H5O__attr_remove_update (const H5O_loc_t * loc , H5O_t * oh , H5O_ainfo_t * ainfo );
125122static herr_t H5O__attr_remove_cb (H5O_t * oh , H5O_mesg_t * mesg , unsigned H5_ATTR_UNUSED sequence ,
126- unsigned * oh_modified , void * _udata );
127- static herr_t H5O__attr_exists_cb (H5O_t H5_ATTR_UNUSED * oh , H5O_mesg_t * mesg ,
128- unsigned H5_ATTR_UNUSED sequence , unsigned H5_ATTR_UNUSED * oh_modified ,
129123 void * _udata );
124+ static herr_t H5O__attr_exists_cb (H5O_t H5_ATTR_UNUSED * oh , H5O_mesg_t * mesg ,
125+ unsigned H5_ATTR_UNUSED sequence , void * _udata );
130126
131127/*********************/
132128/* Package Variables */
@@ -152,7 +148,7 @@ static herr_t H5O__attr_exists_cb(H5O_t H5_ATTR_UNUSED *oh, H5O_mesg_t *mesg,
152148 */
153149static herr_t
154150H5O__attr_to_dense_cb (H5O_t * oh , H5O_mesg_t * mesg /*in,out*/ , unsigned H5_ATTR_UNUSED sequence ,
155- unsigned * oh_modified , void * _udata /*in,out*/ )
151+ void * _udata /*in,out*/ )
156152{
157153 H5O_iter_cvt_t * udata = (H5O_iter_cvt_t * )_udata ; /* Operator user data */
158154 H5A_t * attr = (H5A_t * )mesg -> native ; /* Pointer to attribute to insert */
@@ -178,7 +174,7 @@ H5O__attr_to_dense_cb(H5O_t *oh, H5O_mesg_t *mesg /*in,out*/, unsigned H5_ATTR_U
178174 HGOTO_ERROR (H5E_OHDR , H5E_CANTDELETE , H5_ITER_ERROR , "unable to convert into null message" );
179175
180176 /* Indicate that the object header was modified */
181- * oh_modified = H5O_MODIFY_CONDENSE ;
177+ oh -> mesgs_modified = H5O_MODIFY_CONDENSE ;
182178
183179done :
184180 FUNC_LEAVE_NOAPI (ret_value )
@@ -394,8 +390,7 @@ H5O__attr_create(const H5O_loc_t *loc, H5A_t *attr)
394390 *-------------------------------------------------------------------------
395391 */
396392static herr_t
397- H5O__attr_open_cb (H5O_t * oh , H5O_mesg_t * mesg /*in,out*/ , unsigned sequence ,
398- unsigned H5_ATTR_UNUSED * oh_modified , void * _udata /*in,out*/ )
393+ H5O__attr_open_cb (H5O_t * oh , H5O_mesg_t * mesg /*in,out*/ , unsigned sequence , void * _udata /*in,out*/ )
399394{
400395 H5O_iter_opn_t * udata = (H5O_iter_opn_t * )_udata ; /* Operator user data */
401396 herr_t ret_value = H5_ITER_CONT ; /* Return value */
@@ -776,7 +771,7 @@ H5O__attr_update_shared(H5F_t *f, H5O_t *oh, H5A_t *attr, H5O_shared_t *update_s
776771 */
777772static herr_t
778773H5O__attr_write_cb (H5O_t * oh , H5O_mesg_t * mesg /*in,out*/ , unsigned H5_ATTR_UNUSED sequence ,
779- unsigned * oh_modified , void * _udata /*in,out*/ )
774+ void * _udata /*in,out*/ )
780775{
781776 H5O_iter_wrt_t * udata = (H5O_iter_wrt_t * )_udata ; /* Operator user data */
782777 H5O_chunk_proxy_t * chk_proxy = NULL ; /* Chunk that message is in */
@@ -828,7 +823,7 @@ H5O__attr_write_cb(H5O_t *oh, H5O_mesg_t *mesg /*in,out*/, unsigned H5_ATTR_UNUS
828823 "unable to update attribute in shared storage" );
829824
830825 /* Indicate that the object header was modified */
831- * oh_modified = H5O_MODIFY ;
826+ oh -> mesgs_modified = H5O_MODIFY ;
832827
833828 /* Indicate that the attribute was found */
834829 udata -> found = true;
@@ -928,8 +923,7 @@ H5O__attr_write(const H5O_loc_t *loc, H5A_t *attr)
928923 */
929924static herr_t
930925H5O__attr_rename_chk_cb (H5O_t H5_ATTR_UNUSED * oh , H5O_mesg_t * mesg /*in,out*/ ,
931- unsigned H5_ATTR_UNUSED sequence , unsigned H5_ATTR_UNUSED * oh_modified ,
932- void * _udata /*in,out*/ )
926+ unsigned H5_ATTR_UNUSED sequence , void * _udata /*in,out*/ )
933927{
934928 H5O_iter_ren_t * udata = (H5O_iter_ren_t * )_udata ; /* Operator user data */
935929 herr_t ret_value = H5_ITER_CONT ; /* Return value */
@@ -970,7 +964,7 @@ H5O__attr_rename_chk_cb(H5O_t H5_ATTR_UNUSED *oh, H5O_mesg_t *mesg /*in,out*/,
970964 */
971965static herr_t
972966H5O__attr_rename_mod_cb (H5O_t * oh , H5O_mesg_t * mesg /*in,out*/ , unsigned H5_ATTR_UNUSED sequence ,
973- unsigned * oh_modified , void * _udata /*in,out*/ )
967+ void * _udata /*in,out*/ )
974968{
975969 H5O_iter_ren_t * udata = (H5O_iter_ren_t * )_udata ; /* Operator user data */
976970 H5O_chunk_proxy_t * chk_proxy = NULL ; /* Chunk that message is in */
@@ -1047,7 +1041,7 @@ H5O__attr_rename_mod_cb(H5O_t *oh, H5O_mesg_t *mesg /*in,out*/, unsigned H5_ATTR
10471041 HGOTO_ERROR (H5E_ATTR , H5E_CANTDELETE , H5_ITER_ERROR ,
10481042 "unable to release previous attribute" );
10491043
1050- * oh_modified = H5O_MODIFY_CONDENSE ;
1044+ oh -> mesgs_modified = H5O_MODIFY_CONDENSE ;
10511045
10521046 /* Append renamed attribute to object header */
10531047 /* (Don't let it become shared) */
@@ -1065,7 +1059,7 @@ H5O__attr_rename_mod_cb(H5O_t *oh, H5O_mesg_t *mesg /*in,out*/, unsigned H5_ATTR
10651059 } /* end else */
10661060
10671061 /* Indicate that the object header was modified */
1068- * oh_modified |= H5O_MODIFY ;
1062+ oh -> mesgs_modified |= H5O_MODIFY ;
10691063
10701064 /* Indicate that we found an existing attribute with the old name */
10711065 udata -> found = true;
@@ -1415,7 +1409,7 @@ H5O__attr_remove_update(const H5O_loc_t *loc, H5O_t *oh, H5O_ainfo_t *ainfo)
14151409 */
14161410static herr_t
14171411H5O__attr_remove_cb (H5O_t * oh , H5O_mesg_t * mesg /*in,out*/ , unsigned H5_ATTR_UNUSED sequence ,
1418- unsigned * oh_modified , void * _udata /*in,out*/ )
1412+ void * _udata /*in,out*/ )
14191413{
14201414 H5O_iter_rm_t * udata = (H5O_iter_rm_t * )_udata ; /* Operator user data */
14211415 herr_t ret_value = H5_ITER_CONT ; /* Return value */
@@ -1434,7 +1428,7 @@ H5O__attr_remove_cb(H5O_t *oh, H5O_mesg_t *mesg /*in,out*/, unsigned H5_ATTR_UNU
14341428 HGOTO_ERROR (H5E_OHDR , H5E_CANTDELETE , H5_ITER_ERROR , "unable to convert into null message" );
14351429
14361430 /* Indicate that the object header was modified */
1437- * oh_modified = H5O_MODIFY_CONDENSE ;
1431+ oh -> mesgs_modified = H5O_MODIFY_CONDENSE ;
14381432
14391433 /* Indicate that this message is the attribute to be deleted */
14401434 udata -> found = true;
@@ -1674,7 +1668,7 @@ H5O__attr_count_real(H5F_t *f, H5O_t *oh, hsize_t *nattrs)
16741668 */
16751669static herr_t
16761670H5O__attr_exists_cb (H5O_t H5_ATTR_UNUSED * oh , H5O_mesg_t * mesg /*in,out*/ , unsigned H5_ATTR_UNUSED sequence ,
1677- unsigned H5_ATTR_UNUSED * oh_modified , void * _udata /*in,out*/ )
1671+ void * _udata /*in,out*/ )
16781672{
16791673 H5O_iter_xst_t * udata = (H5O_iter_xst_t * )_udata ; /* Operator user data */
16801674 herr_t ret_value = H5_ITER_CONT ; /* Return value */
0 commit comments