@@ -109,24 +109,20 @@ typedef struct {
109
109
/* Local Prototypes */
110
110
/********************/
111
111
static 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 );
113
113
static 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 );
116
115
static 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 );
119
117
static 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 );
122
119
static 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 );
124
121
static herr_t H5O__attr_remove_update (const H5O_loc_t * loc , H5O_t * oh , H5O_ainfo_t * ainfo );
125
122
static 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 ,
129
123
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 );
130
126
131
127
/*********************/
132
128
/* Package Variables */
@@ -152,7 +148,7 @@ static herr_t H5O__attr_exists_cb(H5O_t H5_ATTR_UNUSED *oh, H5O_mesg_t *mesg,
152
148
*/
153
149
static herr_t
154
150
H5O__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*/ )
156
152
{
157
153
H5O_iter_cvt_t * udata = (H5O_iter_cvt_t * )_udata ; /* Operator user data */
158
154
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
178
174
HGOTO_ERROR (H5E_OHDR , H5E_CANTDELETE , H5_ITER_ERROR , "unable to convert into null message" );
179
175
180
176
/* Indicate that the object header was modified */
181
- * oh_modified = H5O_MODIFY_CONDENSE ;
177
+ oh -> mesgs_modified = H5O_MODIFY_CONDENSE ;
182
178
183
179
done :
184
180
FUNC_LEAVE_NOAPI (ret_value )
@@ -394,8 +390,7 @@ H5O__attr_create(const H5O_loc_t *loc, H5A_t *attr)
394
390
*-------------------------------------------------------------------------
395
391
*/
396
392
static 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*/ )
399
394
{
400
395
H5O_iter_opn_t * udata = (H5O_iter_opn_t * )_udata ; /* Operator user data */
401
396
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
776
771
*/
777
772
static herr_t
778
773
H5O__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*/ )
780
775
{
781
776
H5O_iter_wrt_t * udata = (H5O_iter_wrt_t * )_udata ; /* Operator user data */
782
777
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
828
823
"unable to update attribute in shared storage" );
829
824
830
825
/* Indicate that the object header was modified */
831
- * oh_modified = H5O_MODIFY ;
826
+ oh -> mesgs_modified = H5O_MODIFY ;
832
827
833
828
/* Indicate that the attribute was found */
834
829
udata -> found = true;
@@ -928,8 +923,7 @@ H5O__attr_write(const H5O_loc_t *loc, H5A_t *attr)
928
923
*/
929
924
static herr_t
930
925
H5O__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*/ )
933
927
{
934
928
H5O_iter_ren_t * udata = (H5O_iter_ren_t * )_udata ; /* Operator user data */
935
929
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*/,
970
964
*/
971
965
static herr_t
972
966
H5O__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*/ )
974
968
{
975
969
H5O_iter_ren_t * udata = (H5O_iter_ren_t * )_udata ; /* Operator user data */
976
970
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
1047
1041
HGOTO_ERROR (H5E_ATTR , H5E_CANTDELETE , H5_ITER_ERROR ,
1048
1042
"unable to release previous attribute" );
1049
1043
1050
- * oh_modified = H5O_MODIFY_CONDENSE ;
1044
+ oh -> mesgs_modified = H5O_MODIFY_CONDENSE ;
1051
1045
1052
1046
/* Append renamed attribute to object header */
1053
1047
/* (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
1065
1059
} /* end else */
1066
1060
1067
1061
/* Indicate that the object header was modified */
1068
- * oh_modified |= H5O_MODIFY ;
1062
+ oh -> mesgs_modified |= H5O_MODIFY ;
1069
1063
1070
1064
/* Indicate that we found an existing attribute with the old name */
1071
1065
udata -> found = true;
@@ -1415,7 +1409,7 @@ H5O__attr_remove_update(const H5O_loc_t *loc, H5O_t *oh, H5O_ainfo_t *ainfo)
1415
1409
*/
1416
1410
static herr_t
1417
1411
H5O__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*/ )
1419
1413
{
1420
1414
H5O_iter_rm_t * udata = (H5O_iter_rm_t * )_udata ; /* Operator user data */
1421
1415
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
1434
1428
HGOTO_ERROR (H5E_OHDR , H5E_CANTDELETE , H5_ITER_ERROR , "unable to convert into null message" );
1435
1429
1436
1430
/* Indicate that the object header was modified */
1437
- * oh_modified = H5O_MODIFY_CONDENSE ;
1431
+ oh -> mesgs_modified = H5O_MODIFY_CONDENSE ;
1438
1432
1439
1433
/* Indicate that this message is the attribute to be deleted */
1440
1434
udata -> found = true;
@@ -1674,7 +1668,7 @@ H5O__attr_count_real(H5F_t *f, H5O_t *oh, hsize_t *nattrs)
1674
1668
*/
1675
1669
static herr_t
1676
1670
H5O__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*/ )
1678
1672
{
1679
1673
H5O_iter_xst_t * udata = (H5O_iter_xst_t * )_udata ; /* Operator user data */
1680
1674
herr_t ret_value = H5_ITER_CONT ; /* Return value */
0 commit comments