summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-01-30 14:19:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-01-30 14:19:34 (GMT)
commit7e7e5513e1a66163b88bc82a8d88563baddc3560 (patch)
tree30f0ad92e227b6bba42fe1170e2a609e3e2e439c
parentfa5fd6a800c9c309add0d4c92bfb13fcfbed0e19 (diff)
downloadhdf5-7e7e5513e1a66163b88bc82a8d88563baddc3560.zip
hdf5-7e7e5513e1a66163b88bc82a8d88563baddc3560.tar.gz
hdf5-7e7e5513e1a66163b88bc82a8d88563baddc3560.tar.bz2
[svn-r201] Changed H5Pget/set_hyperslab to final consensus types: int for offset and
size_t for count & stride.
-rw-r--r--src/H5P.c10
-rw-r--r--src/H5Ppublic.h6
2 files changed, 8 insertions, 8 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 08b4679..fad7918 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -937,7 +937,7 @@ H5Pset_space(hid_t sid, int rank, const size_t *dims)
USAGE
herr_t H5Pset_hyperslab(sid, start, count, stride)
hid_t sid; IN: Dataspace object to select hyperslab from
- const size_t *start; IN: Starting location for hyperslab to select
+ const int *start; IN: Starting location for hyperslab to select
const size_t *count; IN: Number of elements in hyperslab
const size_t *stride; IN: Packing of elements in hyperslab
RETURNS
@@ -952,7 +952,7 @@ H5Pset_space(hid_t sid, int rank, const size_t *dims)
datasets which extend in arbitrary directions.
--------------------------------------------------------------------------*/
herr_t
-H5Pset_hyperslab(hid_t sid, const intn *start, const intn *count, const intn *stride)
+H5Pset_hyperslab(hid_t sid, const int *start, const size_t *count, const size_t *stride)
{
H5P_t *space = NULL; /* dataspace to modify */
intn *tmp_stride=NULL; /* temp. copy of stride */
@@ -1037,8 +1037,8 @@ done:
*-------------------------------------------------------------------------
*/
int
-H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, int size[]/*out*/,
- int stride[]/*out*/)
+H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, size_t size[]/*out*/,
+ size_t stride[]/*out*/)
{
const H5P_t *ds = NULL;
intn ret_value = FAIL;
@@ -1079,7 +1079,7 @@ H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, int size[]/*out*/,
*/
intn
H5P_get_hyperslab (const H5P_t *ds, int offset[]/*out*/,
- int size[]/*out*/, int stride[]/*out*/)
+ size_t size[]/*out*/, size_t stride[]/*out*/)
{
intn i;
intn ret_value = FAIL;
diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h
index f76e0e7..26e70e6 100644
--- a/src/H5Ppublic.h
+++ b/src/H5Ppublic.h
@@ -43,10 +43,10 @@ int H5Pget_ndims (hid_t space_id);
int H5Pget_dims (hid_t space_id, size_t dims[]);
hbool_t H5Pis_simple (hid_t space_id);
herr_t H5Pset_space (hid_t space_id, int rank, const size_t *dims);
-herr_t H5Pset_hyperslab(hid_t sid, const int *start, const int *count,
- const int *stride);
+herr_t H5Pset_hyperslab(hid_t sid, const int *start, const size_t *count,
+ const size_t *stride);
int H5Pget_hyperslab (hid_t sid, int offset[]/*out*/,
- int size[]/*out*/, int stride[]/*out*/);
+ size_t size[]/*out*/, size_t stride[]/*out*/);
#ifdef __cplusplus
}