summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-10-08 15:26:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-10-08 15:26:02 (GMT)
commitd3ee3988b68292524b3a893b9db55c074f4b9e87 (patch)
tree64395dd8ffd157ccd761ea54f7ee2c739e7b48ed /examples
parenta6f5c793469cba3e0c1168e07bd6c7f833321623 (diff)
downloadhdf5-d3ee3988b68292524b3a893b9db55c074f4b9e87.zip
hdf5-d3ee3988b68292524b3a893b9db55c074f4b9e87.tar.gz
hdf5-d3ee3988b68292524b3a893b9db55c074f4b9e87.tar.bz2
[svn-r14192] Description:
Deprecate H5Dextend in favor of H5Dset_extent (without using API versioning, due to changed behavior) and switch internal usage to H5Dset_extent Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_extend_write.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c
index 4e605e0..b54cc66 100644
--- a/examples/h5_extend_write.c
+++ b/examples/h5_extend_write.c
@@ -89,12 +89,12 @@ main (void)
*/
size[0] = 3;
size[1] = 3;
- status = H5Dextend (dataset, size);
+ status = H5Dset_extent(dataset, size);
/*
* Select a hyperslab.
*/
- filespace = H5Dget_space (dataset);
+ filespace = H5Dget_space(dataset);
offset[0] = 0;
offset[1] = 0;
status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL,
@@ -112,12 +112,12 @@ main (void)
dims[0] = dims1[0] + dims2[0];
size[0] = dims[0];
size[1] = dims[1];
- status = H5Dextend (dataset, size);
+ status = H5Dset_extent(dataset, size);
/*
* Select a hyperslab.
*/
- filespace = H5Dget_space (dataset);
+ filespace = H5Dget_space(dataset);
offset[0] = 3;
offset[1] = 0;
status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL,
@@ -140,12 +140,12 @@ main (void)
dims[1] = dims1[1] + dims3[1];
size[0] = dims[0];
size[1] = dims[1];
- status = H5Dextend (dataset, size);
+ status = H5Dset_extent(dataset, size);
/*
* Select a hyperslab
*/
- filespace = H5Dget_space (dataset);
+ filespace = H5Dget_space(dataset);
offset[0] = 0;
offset[1] = 3;
status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL,