diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-10-08 15:26:02 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-10-08 15:26:02 (GMT) |
commit | d3ee3988b68292524b3a893b9db55c074f4b9e87 (patch) | |
tree | 64395dd8ffd157ccd761ea54f7ee2c739e7b48ed /test/testmeta.c | |
parent | a6f5c793469cba3e0c1168e07bd6c7f833321623 (diff) | |
download | hdf5-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 'test/testmeta.c')
-rw-r--r-- | test/testmeta.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/testmeta.c b/test/testmeta.c index db97b28..74e9aa8 100644 --- a/test/testmeta.c +++ b/test/testmeta.c @@ -180,27 +180,24 @@ int main(void) status = H5Gclose(group_id); /* Extend attribute arrays */ - for(i=0; i<NEXTARRAYS; i++) - { + for(i = 0; i < NEXTARRAYS; i++) { /* Open extendable dataset */ sprintf(name, "/ExtArray%06d", i); dataset_id = H5Dopen(file_id, name); - if(dataset_id < 0) - { + if(dataset_id < 0) { fprintf(stderr, "Failed to open ExtArray dataset.\n"); status = H5Fclose(file_id); return -1; - } + } /* end if */ /* Extend attribute dataset */ dims[0] = (hsize_t)j + 1; - status = H5Dextend(dataset_id, dims); - if(status < 0) - { + status = H5Dset_extent(dataset_id, dims); + if(status < 0) { fprintf(stderr, "Failed to extend DataArray dataset.\n"); status = H5Fclose(file_id); return -1; - } + } /* end if */ /* Select element and write value to attribute dataset */ dims[0] = 1; |