Skip to content

Commit 9dc87f7

Browse files
committed
Homogenise casing and parentheses
1 parent 5a78268 commit 9dc87f7

File tree

8 files changed

+46
-46
lines changed

8 files changed

+46
-46
lines changed

hdf5-sys/src/h5a.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl Default for H5A_info_t {
2323
}
2424
}
2525

26-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5A_operator2_t")]
26+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5A_operator2_t")]
2727
pub type H5A_operator1_t = Option<
2828
extern "C" fn(
2929
location_id: hid_t,
@@ -106,17 +106,17 @@ extern "C" {
106106
obj_id: hid_t, obj_name: *const c_char, attr_name: *const c_char, lapl_id: hid_t,
107107
) -> htri_t;
108108

109-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Aget_info()")]
109+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Aget_info")]
110110
pub fn H5Aget_num_attrs(loc_id: hid_t) -> c_int;
111-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Aopen_by_idx()")]
111+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Aopen_by_idx")]
112112
pub fn H5Aopen_idx(loc_id: hid_t, idx: c_uint) -> hid_t;
113-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Aopen_by_name()")]
113+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Aopen_by_name")]
114114
pub fn H5Aopen_name(loc_id: hid_t, name: *const c_char) -> hid_t;
115-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Acreate2()")]
115+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Acreate2")]
116116
pub fn H5Acreate1(
117117
loc_id: hid_t, name: *const c_char, type_id: hid_t, space_id: hid_t, acpl_id: hid_t,
118118
) -> hid_t;
119-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Aiterate2()")]
119+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Aiterate2")]
120120
pub fn H5Aiterate1(
121121
loc_id: hid_t, attr_num: *mut c_uint, op: H5A_operator1_t, op_data: *mut c_void,
122122
) -> herr_t;

hdf5-sys/src/h5d.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ extern "C" {
179179
buf: *mut c_void, type_id: hid_t, space_id: hid_t, op: H5D_operator_t,
180180
operator_data: *mut c_void,
181181
) -> herr_t;
182-
#[cfg_attr(hdf5_1_12_0, deprecated(note = "Deprecated in HDF5 1.12.0, use H5Treclaim()"))]
182+
#[cfg_attr(hdf5_1_12_0, deprecated(note = "deprecated in HDF5 1.12.0, use H5Treclaim"))]
183183
pub fn H5Dvlen_reclaim(
184184
type_id: hid_t, space_id: hid_t, plist_id: hid_t, buf: *mut c_void,
185185
) -> herr_t;
@@ -192,11 +192,11 @@ extern "C" {
192192
pub fn H5Dset_extent(dset_id: hid_t, size: *const hsize_t) -> herr_t;
193193
pub fn H5Ddebug(dset_id: hid_t) -> herr_t;
194194

195-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Dcreate2()")]
195+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Dcreate2")]
196196
pub fn H5Dcreate1(
197197
file_id: hid_t, name: *const c_char, type_id: hid_t, space_id: hid_t, dcpl_id: hid_t,
198198
) -> hid_t;
199-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Dopen2()")]
199+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Dopen2")]
200200
pub fn H5Dopen1(file_id: hid_t, name: *const c_char) -> hid_t;
201201
}
202202

hdf5-sys/src/h5e.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,24 +108,24 @@ extern "C" {
108108
) -> ssize_t;
109109
pub fn H5Eget_num(error_stack_id: hid_t) -> ssize_t;
110110

111-
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Epush2()")]
111+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Epush2")]
112112
pub fn H5Epush1(
113113
file: *const c_char, func: *const c_char, line: c_uint, maj: H5E_major_t, min: H5E_minor_t,
114114
str_: *const c_char,
115115
) -> herr_t;
116-
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eprint2()")]
116+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eprint2")]
117117
pub fn H5Eprint1(stream: *mut FILE) -> herr_t;
118-
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Ewalk2()")]
118+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Ewalk2")]
119119
pub fn H5Ewalk1(
120120
direction: H5E_direction_t, func: H5E_walk1_t, client_data: *mut c_void,
121121
) -> herr_t;
122-
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eget_auto2()")]
122+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eget_auto2")]
123123
pub fn H5Eget_auto1(func: *mut H5E_auto1_t, client_data: *mut *mut c_void) -> herr_t;
124-
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eset_auto2()")]
124+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eset_auto2")]
125125
pub fn H5Eset_auto1(func: H5E_auto1_t, client_data: *mut c_void) -> herr_t;
126-
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eclear2()")]
126+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eclear2")]
127127
pub fn H5Eclear1() -> herr_t;
128-
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eget_msg()")]
128+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Eget_msg")]
129129
pub fn H5Eget_major(maj: H5E_major_t) -> *mut c_char;
130130
#[deprecated(note = "deprecated in HDF5 1.8.0")]
131131
pub fn H5Eget_minor(min: H5E_minor_t) -> *mut c_char;

hdf5-sys/src/h5g.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,44 +64,44 @@ extern "C" {
6464
n: hsize_t, ginfo: *mut H5G_info_t, lapl_id: hid_t,
6565
) -> herr_t;
6666
pub fn H5Gclose(group_id: hid_t) -> herr_t;
67-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Gcreate2()")]
67+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Gcreate2")]
6868
pub fn H5Gcreate1(loc_id: hid_t, name: *const c_char, size_hint: size_t) -> hid_t;
69-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Oget_comment()")]
69+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Oget_comment")]
7070
pub fn H5Gget_comment(
7171
loc_id: hid_t, name: *const c_char, bufsize: size_t, buf: *mut c_char,
7272
) -> c_int;
73-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Lget_val()")]
73+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Lget_val")]
7474
pub fn H5Gget_linkval(loc_id: hid_t, name: *const c_char, comment: *const c_char) -> herr_t;
75-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Gget_info()")]
75+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Gget_info")]
7676
pub fn H5Gget_num_objs(loc_id: hid_t, num_objs: *mut hsize_t) -> herr_t;
77-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Oget_info() or H5Lget_info()")]
77+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Oget_info or H5Lget_info")]
7878
pub fn H5Gget_objinfo(
7979
loc_id: hid_t, name: *const c_char, follow_link: hbool_t, statubuf: *mut H5G_stat_t,
8080
) -> herr_t;
81-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Lget_name_by_idx()")]
81+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Lget_name_by_idx")]
8282
pub fn H5Gget_objname_by_idx(
8383
loc_id: hid_t, idx: hsize_t, name: *mut c_char, size: size_t,
8484
) -> ssize_t;
85-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Oget_info()")]
85+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Oget_info")]
8686
pub fn H5Gget_objtype_by_idx(loc_id: hid_t, idx: hsize_t) -> H5G_obj_t;
87-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Lcreate_hard() or H5Lcreate_soft()")]
87+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Lcreate_hard or H5Lcreate_soft")]
8888
pub fn H5Glink(
8989
cur_loc_id: hid_t, type_: H5G_link_t, cur_name: *const c_char, new_name: *const c_char,
9090
) -> herr_t;
91-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Lcreate_hard() or H5Lcreate_soft()")]
91+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Lcreate_hard or H5Lcreate_soft")]
9292
pub fn H5Glink2(
9393
cur_loc_id: hid_t, cur_name: *const c_char, type_: H5G_link_t, new_loc_id: hid_t,
9494
new_name: *const c_char,
9595
) -> herr_t;
96-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Lmove()")]
96+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Lmove")]
9797
pub fn H5Gmove(src_loc_id: hid_t, src_name: *const c_char, dst_name: *const c_char) -> herr_t;
98-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Lmove()")]
98+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Lmove")]
9999
pub fn H5Gmove2(
100100
src_loc_id: hid_t, src_name: *const c_char, dst_loc_id: hid_t, dst_name: *const c_char,
101101
) -> herr_t;
102-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Gopen2()")]
102+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Gopen2")]
103103
pub fn H5Gopen1(loc_id: hid_t, name: *const c_char) -> hid_t;
104-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Ldelete()")]
104+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Ldelete")]
105105
pub fn H5Gunlink(loc_id: hid_t, name: *const c_char) -> herr_t;
106106
}
107107

hdf5-sys/src/h5o.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,23 +287,23 @@ mod hdf5_1_10_3 {
287287
loc_id: hid_t, obj_name: *const c_char, idx_type: H5_index_t, order: H5_iter_order_t,
288288
op: H5O_iterate1_t, op_data: *mut c_void, fields: c_uint, lapl_id: hid_t,
289289
) -> herr_t;
290-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info2()")]
290+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info2")]
291291
pub fn H5Oget_info1(loc_id: hid_t, oinfo: *mut H5O_info1_t) -> herr_t;
292-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_name2()")]
292+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_name2")]
293293
pub fn H5Oget_info_by_name1(
294294
loc_id: hid_t, name: *const c_char, oinfo: *mut H5O_info1_t, lapl_id: hid_t,
295295
) -> herr_t;
296-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_idx2()")]
296+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_idx2")]
297297
pub fn H5Oget_info_by_idx1(
298298
loc_id: hid_t, group_name: *const c_char, idx_type: H5_index_t, order: H5_iter_order_t,
299299
n: hsize_t, oinfo: *mut H5O_info1_t, lapl_id: hid_t,
300300
) -> herr_t;
301-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Ovisit2()")]
301+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Ovisit2")]
302302
pub fn H5Ovisit1(
303303
obj_id: hid_t, idx_type: H5_index_t, order: H5_iter_order_t, op: H5O_iterate1_t,
304304
op_data: *mut c_void,
305305
) -> herr_t;
306-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Ovisit_by_name2()")]
306+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Ovisit_by_name2")]
307307
pub fn H5Ovisit_by_name1(
308308
loc_id: hid_t, obj_name: *const c_char, idx_type: H5_index_t, order: H5_iter_order_t,
309309
op: H5O_iterate1_t, op_data: *mut c_void, lapl_id: hid_t,
@@ -326,23 +326,23 @@ extern "C" {
326326
// They've messed up when introducing compatibility macros which broke ABI compatibility;
327327
// in 1.10.5 those APIs were copied over to old names in order to be compatible with
328328
// older library versions - so we can link to them directly again.
329-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info2()")]
329+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info2")]
330330
pub fn H5Oget_info(loc_id: hid_t, oinfo: *mut H5O_info1_t) -> herr_t;
331-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_name2()")]
331+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_name2")]
332332
pub fn H5Oget_info_by_name(
333333
loc_id: hid_t, name: *const c_char, oinfo: *mut H5O_info1_t, lapl_id: hid_t,
334334
) -> herr_t;
335-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_idx2()")]
335+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Oget_info_by_idx2")]
336336
pub fn H5Oget_info_by_idx(
337337
loc_id: hid_t, group_name: *const c_char, idx_type: H5_index_t, order: H5_iter_order_t,
338338
n: hsize_t, oinfo: *mut H5O_info1_t, lapl_id: hid_t,
339339
) -> herr_t;
340-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Ovisit2()")]
340+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Ovisit2")]
341341
pub fn H5Ovisit(
342342
obj_id: hid_t, idx_type: H5_index_t, order: H5_iter_order_t, op: H5O_iterate1_t,
343343
op_data: *mut c_void,
344344
) -> herr_t;
345-
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Ovisit_by_name2()")]
345+
#[deprecated(note = "deprecated in HDF5 1.10.3, use H5Ovisit_by_name2")]
346346
pub fn H5Ovisit_by_name(
347347
loc_id: hid_t, obj_name: *const c_char, idx_type: H5_index_t, order: H5_iter_order_t,
348348
op: H5O_iterate1_t, op_data: *mut c_void, lapl_id: hid_t,

hdf5-sys/src/h5r.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ extern "C" {
4141
space_id: hid_t,
4242
) -> herr_t;
4343
pub fn H5Rget_region(dataset: hid_t, ref_type: H5R_type_t, ref_: *const c_void) -> hid_t;
44-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Rget_obj_type2()")]
44+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Rget_obj_type2")]
4545
pub fn H5Rget_obj_type1(id: hid_t, ref_type: H5R_type_t, ref_: *const c_void) -> H5G_obj_t;
4646
pub fn H5Rget_obj_type2(
4747
id: hid_t, ref_type: H5R_type_t, ref_: *const c_void, obj_type: *mut H5O_type_t,
@@ -52,7 +52,7 @@ extern "C" {
5252
}
5353

5454
extern "C" {
55-
#[cfg_attr(hdf5_1_10_0, deprecated(note = "deprecated in HDF5 1.10.0, use H5Rdereference2()"))]
55+
#[cfg_attr(hdf5_1_10_0, deprecated(note = "deprecated in HDF5 1.10.0, use H5Rdereference2"))]
5656
#[cfg_attr(not(hdf5_1_10_0), link_name = "H5Rdereference")]
5757
pub fn H5Rdereference1(obj_id: hid_t, ref_type: H5R_type_t, ref_: *const c_void) -> hid_t;
5858
#[cfg(hdf5_1_10_0)]

hdf5-sys/src/h5t.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,15 +336,15 @@ extern "C" {
336336
src_id: hid_t, dst_id: hid_t, nelmts: size_t, buf: *mut c_void, background: *mut c_void,
337337
plist_id: hid_t,
338338
) -> herr_t;
339-
#[deprecated(note = "Deprecated since HDF5 1.8.0, use H5Tcommit2()")]
339+
#[deprecated(note = "deprecated since HDF5 1.8.0, use H5Tcommit2")]
340340
pub fn H5Tcommit1(loc_id: hid_t, name: *const c_char, type_id: hid_t) -> herr_t;
341-
#[deprecated(note = "Deprecated since HDF5 1.8.0, use H5Tcommit2()")]
341+
#[deprecated(note = "deprecated since HDF5 1.8.0, use H5Tcommit2")]
342342
pub fn H5Topen1(loc_id: hid_t, name: *const c_char) -> hid_t;
343-
#[deprecated(note = "Deprecated since HDF5 1.8.0, use H5Tarray_create2()")]
343+
#[deprecated(note = "deprecated since HDF5 1.8.0, use H5Tarray_create2")]
344344
pub fn H5Tarray_create1(
345345
base_id: hid_t, ndims: c_int, dim: *const hsize_t, perm: *const c_int,
346346
) -> hid_t;
347-
#[deprecated(note = "Deprecated since HDF5 1.8.0, use H5Tget_array_dims2()")]
347+
#[deprecated(note = "deprecated since HDF5 1.8.0, use H5Tget_array_dims2")]
348348
pub fn H5Tget_array_dims1(type_id: hid_t, dims: *mut hsize_t, perm: *mut c_int) -> c_int;
349349
}
350350

hdf5-sys/src/h5z.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ extern "C" {
151151

152152
#[repr(C)]
153153
#[derive(Debug, Copy, Clone)]
154-
#[deprecated(note = "Deprecated in HDF5 1.8.0, use H5Z_class2_t")]
154+
#[deprecated(note = "deprecated in HDF5 1.8.0, use H5Z_class2_t")]
155155
pub struct H5Z_class1_t {
156156
id: H5Z_filter_t,
157157
name: *const c_char,

0 commit comments

Comments
 (0)