summaryrefslogtreecommitdiffstats
path: root/tools/h5ls/h5ls.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-03-14 21:03:20 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-03-14 21:03:20 (GMT)
commit5ed4eda59ea4004850ac8ca720b67ddac6b2d7f9 (patch)
treef27c616619cd4b1de24f41807fb1a47db3bccbac /tools/h5ls/h5ls.c
parent92f79b673474773db58debd66c3c0d9a58949937 (diff)
downloadhdf5-5ed4eda59ea4004850ac8ca720b67ddac6b2d7f9.zip
hdf5-5ed4eda59ea4004850ac8ca720b67ddac6b2d7f9.tar.gz
hdf5-5ed4eda59ea4004850ac8ca720b67ddac6b2d7f9.tar.bz2
[svn-r20247] Change name of new VLEN function from H5Tdetect_vlen_str to h5tools_detect_vlen_str to match other functions in tools lib.
Added back test for H5Tdetect_class of H5T_VLEN after each instance of above function to catch all VLEN types in h5dump. Tested: local linux
Diffstat (limited to 'tools/h5ls/h5ls.c')
-rw-r--r--tools/h5ls/h5ls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index e670470..d288f4b 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -1457,8 +1457,10 @@ list_attr(hid_t obj, const char *attr_name, const H5A_info_t UNUSED *ainfo,
unsigned int vl_data = 0; /* contains VL datatypes */
/* Check if we have VL data in the dataset's datatype */
- if (H5Tdetect_vlen_str(p_type) == TRUE)
+ if (h5tools_detect_vlen_str(p_type) == TRUE)
vl_data = TRUE;
+ if (H5Tdetect_class(p_type, H5T_VLEN) == TRUE)
+ vl_data = TRUE;
temp_need= nelmts * MAX(H5Tget_size(type), H5Tget_size(p_type));
assert(temp_need == (hsize_t)((size_t)temp_need));