summaryrefslogtreecommitdiffstats
path: root/hl/src
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 /hl/src
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 'hl/src')
-rw-r--r--hl/src/H5TB.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/hl/src/H5TB.c b/hl/src/H5TB.c
index 3221cb4..9193bbd 100644
--- a/hl/src/H5TB.c
+++ b/hl/src/H5TB.c
@@ -1550,7 +1550,7 @@ herr_t H5TBinsert_record( hid_t loc_id,
goto out;
read_nrecords = ntotal_records - start;
- tmp_buf = (unsigned char *)calloc((size_t) read_nrecords, type_size );
+ tmp_buf = (unsigned char *)calloc((size_t) read_nrecords, type_size);
/* Read the records after the inserted one(s) */
if(H5TBread_records( loc_id, dset_name, start, read_nrecords, type_size, field_offset,
@@ -1560,7 +1560,7 @@ herr_t H5TBinsert_record( hid_t loc_id,
/* Extend the dataset */
dims[0] = ntotal_records + nrecords;
- if(H5Dextend ( did, dims ) < 0)
+ if(H5Dset_extent(did, dims) < 0)
goto out;
/*-------------------------------------------------------------------------
@@ -1569,8 +1569,8 @@ herr_t H5TBinsert_record( hid_t loc_id,
*/
/* Create a simple memory data space */
- mem_dims[0]=nrecords;
- if((mem_space_id = H5Screate_simple( 1, mem_dims, NULL )) < 0)
+ mem_dims[0] = nrecords;
+ if((mem_space_id = H5Screate_simple(1, mem_dims, NULL)) < 0)
return -1;
/* Get the file data space */
@@ -3691,16 +3691,16 @@ herr_t H5TB_common_append_records( hid_t dataset_id,
/* Extend the dataset */
dims[0] = nrecords + orig_table_size;
- if(H5Dextend ( dataset_id, dims ) < 0)
+ if(H5Dset_extent(dataset_id, dims) < 0)
goto out;
/* Create a simple memory data space */
- mem_dims[0]=nrecords;
- if((mem_space_id = H5Screate_simple( 1, mem_dims, NULL )) < 0)
+ mem_dims[0] = nrecords;
+ if((mem_space_id = H5Screate_simple(1, mem_dims, NULL)) < 0)
goto out;
/* Get a copy of the new file data space for writing */
- if((space_id = H5Dget_space( dataset_id )) < 0)
+ if((space_id = H5Dget_space(dataset_id)) < 0)
goto out;
/* Define a hyperslab in the dataset */