Skip to content

Commit

Permalink
Update C-style array syntax to D-style. Placates dmd 2.068.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Aug 22, 2015
1 parent 23a75e1 commit 4953fa1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/hdf5/H5Dpublic.d
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ version(Posix) {
herr_t H5Dvlen_get_buf_size(hid_t dataset_id, hid_t type_id, hid_t space_id, hsize_t *size);
herr_t H5Dfill(const void *fill, hid_t fill_type, void *buf,
hid_t buf_type, hid_t space);
herr_t H5Dset_extent(hid_t dset_id, const hsize_t size[]);
herr_t H5Dset_extent(hid_t dset_id, const hsize_t[] size);
herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id,
hid_t dst_space_id, void *dst_buf);
herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id,
Expand All @@ -162,7 +162,7 @@ version(Posix) {
hid_t H5Dcreate1(hid_t file_id, const char *name, hid_t type_id,
hid_t space_id, hid_t dcpl_id);
hid_t H5Dopen1(hid_t file_id, const char *name);
herr_t H5Dextend(hid_t dset_id, const hsize_t size[]);
herr_t H5Dextend(hid_t dset_id, const hsize_t[] size);
#endif /* H5_NO_DEPRECATED_SYMBOLS */
+/
Expand Down
14 changes: 7 additions & 7 deletions src/hdf5/H5Ppublic.d
Original file line number Diff line number Diff line change
Expand Up @@ -243,20 +243,20 @@ herr_t H5Pset_obj_track_times(hid_t plist_id, hbool_t track_times);
herr_t H5Pget_obj_track_times(hid_t plist_id, hbool_t *track_times);
herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter,
int flags, size_t cd_nelmts,
const int cd_values[/*cd_nelmts*/]);
const int[/*cd_nelmts*/] cd_values);
herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter,
int flags, size_t cd_nelmts,
const int c_values[]);
const int[] c_values);
int H5Pget_nfilters(hid_t plist_id);
H5Z_filter_t H5Pget_filter2(hid_t plist_id, uint filter,
int *flags/*out*/,
size_t *cd_nelmts/*out*/,
uint cd_values[]/*out*/,
size_t namelen, char name[],
uint[] cd_values/*out*/,
size_t namelen, char[] name,
uint *filter_config /*out*/);
herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t id,
uint *flags/*out*/, size_t *cd_nelmts/*out*/,
int cd_values[]/*out*/, size_t namelen, char name[]/*out*/,
int[] cd_values/*out*/, size_t namelen, char[] name/*out*/,
int *filter_config/*out*/);
htri_t H5Pall_filters_avail(hid_t plist_id);
herr_t H5Premove_filter(hid_t plist_id, H5Z_filter_t filter);
Expand Down Expand Up @@ -486,10 +486,10 @@ herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size,
H5P_prp_close_func_t prp_close);
H5Z_filter_t H5Pget_filter1(hid_t plist_id, uint filter,
int *flags/*out*/, size_t *cd_nelmts/*out*/,
uint cd_values[]/*out*/, size_t namelen, char name[]);
uint[] cd_values/*out*/, size_t namelen, char[] name);
herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id,
int *flags/*out*/, size_t *cd_nelmts/*out*/,
uint cd_values[]/*out*/, size_t namelen, char name[]/*out*/);
uint[] cd_values/*out*/, size_t namelen, char[] name/*out*/);
#endif /* H5_NO_DEPRECATED_SYMBOLS */
+/
Expand Down
10 changes: 5 additions & 5 deletions src/hdf5/H5Tpublic.d
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,9 @@ hid_t H5Tvlen_create(hid_t base_id);

/* Operations defined on array datatypes */
hid_t H5Tarray_create2(hid_t base_id, uint ndims,
const hsize_t dim[/* ndims */]);
const hsize_t[/* ndims */] dim);
int H5Tget_array_ndims(hid_t type_id);
int H5Tget_array_dims2(hid_t type_id, hsize_t dims[]);
int H5Tget_array_dims2(hid_t type_id, hsize_t[] dims);

/* Operations defined on opaque datatypes */
herr_t H5Tset_tag(hid_t type, const char *tag);
Expand Down Expand Up @@ -617,9 +617,9 @@ herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts,
herr_t H5Tcommit1(hid_t loc_id, const char *name, hid_t type_id);
hid_t H5Topen1(hid_t loc_id, const char *name);
hid_t H5Tarray_create1(hid_t base_id, int ndims,
const hsize_t dim[/* ndims */],
const int perm[/* ndims */]);
int H5Tget_array_dims1(hid_t type_id, hsize_t dims[], int perm[]);
const hsize_t[/* ndims */] dim,
const int[/* ndims */] perm);
int H5Tget_array_dims1(hid_t type_id, hsize_t[] dims, int[] perm);
#endif /* H5_NO_DEPRECATED_SYMBOLS */
Expand Down
2 changes: 1 addition & 1 deletion src/hdf5/H5Zpublic.d
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ alias H5Z_set_local_func_t = herr_t function(hid_t dcpl_id, hid_t type_id, hid_t
* all pointer arguments unchanged.
*/
alias H5Z_func_t = size_t function(uint flags, size_t cd_nelmts,
const uint cd_values[], size_t nbytes,
const uint[] cd_values, size_t nbytes,
size_t *buf_size, void **buf);

/*
Expand Down

0 comments on commit 4953fa1

Please sign in to comment.