diff options
author | James Laird <jlaird@hdfgroup.org> | 2004-07-27 16:56:19 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2004-07-27 16:56:19 (GMT) |
commit | 52563e6fa8c56bc68051c50e9e847293da30a008 (patch) | |
tree | d6c2acb4013c54be48da0449c5ae3695cf6e421c /src/H5Sprivate.h | |
parent | 6dae05b645086f67a45d4a3d3ab91f303a3362c0 (diff) | |
download | hdf5-52563e6fa8c56bc68051c50e9e847293da30a008.zip hdf5-52563e6fa8c56bc68051c50e9e847293da30a008.tar.gz hdf5-52563e6fa8c56bc68051c50e9e847293da30a008.tar.bz2 |
[svn-r8954]
Purpose:
Bug fix
Description:
When a simple dataspace is created, its extent should be set before using it,
or it will silently function as a NULL dataspace.
Solution:
Added checks on user-supplied dataspaces. Now dataspaces without extents set
will throw errors; users must explicitly set a dataspace to be NULL.
Platforms tested:
sleipnir, windows
Diffstat (limited to 'src/H5Sprivate.h')
-rw-r--r-- | src/H5Sprivate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Sprivate.h b/src/H5Sprivate.h index 659489e..7de895a 100644 --- a/src/H5Sprivate.h +++ b/src/H5Sprivate.h @@ -211,6 +211,7 @@ H5_DLL H5S_conv_t *H5S_find(const H5S_t *mem_space, const H5S_t *file_space, H5_DLL H5S_class_t H5S_get_simple_extent_type(const H5S_t *ds); H5_DLL hssize_t H5S_get_simple_extent_npoints(const H5S_t *ds); H5_DLL hsize_t H5S_get_npoints_max(const H5S_t *ds); +H5_DLL hbool_t H5S_has_extent(const H5S_t *ds); H5_DLL int H5S_get_simple_extent_ndims(const H5S_t *ds); H5_DLL int H5S_get_simple_extent_dims(const H5S_t *ds, hsize_t dims[]/*out*/, hsize_t max_dims[]/*out*/); |