summaryrefslogtreecommitdiffstats
path: root/tools/lib
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/lib
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/lib')
-rw-r--r--tools/lib/h5tools.c16
-rw-r--r--tools/lib/h5tools.h2
2 files changed, 11 insertions, 7 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index eb37fac..1982bad 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -622,7 +622,7 @@ h5tools_ncols(const char *s)
}
/*-------------------------------------------------------------------------
- * Function: H5Tdetect_vlen_str
+ * Function: h5tools_detect_vlen_str
*
* Purpose: Recursive check for variable length string of a datatype.
*
@@ -631,7 +631,7 @@ h5tools_ncols(const char *s)
*-------------------------------------------------------------------------
*/
htri_t
-H5Tdetect_vlen_str(hid_t tid)
+h5tools_detect_vlen_str(hid_t tid)
{
int i = 0;
int n = 0;
@@ -644,7 +644,7 @@ H5Tdetect_vlen_str(hid_t tid)
tclass = H5Tget_class(tid);
if (tclass == H5T_ARRAY) {
hid_t btid = H5Tget_super(tid);
- has_vlen_str = H5Tdetect_vlen_str(btid);
+ has_vlen_str = h5tools_detect_vlen_str(btid);
H5Tclose(btid);
return has_vlen_str;
}
@@ -652,7 +652,7 @@ H5Tdetect_vlen_str(hid_t tid)
n = H5Tget_nmembers(tid);
for (i = 0; i < n; i++) {
hid_t mtid = H5Tget_member_type(tid, i);
- has_vlen_str = H5Tdetect_vlen_str(mtid);
+ has_vlen_str = h5tools_detect_vlen_str(mtid);
if (has_vlen_str == TRUE) {
H5Tclose(mtid);
return TRUE;
@@ -2030,7 +2030,9 @@ h5tools_print_simple_subset(FILE *stream, const h5tool_format_t *info, h5tools_c
size_row_block = sset->block.data[row_dim];
/* 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;
/* display loop */
@@ -2468,7 +2470,9 @@ h5tools_dump_simple_dset(FILE *stream, const h5tool_format_t *info,
}
/* 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;
/*
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h
index 9c100ea..6d054b8 100644
--- a/tools/lib/h5tools.h
+++ b/tools/lib/h5tools.h
@@ -553,7 +553,7 @@ H5TOOLS_DLL hid_t h5tools_get_native_type(hid_t type);
H5TOOLS_DLL hid_t h5tools_get_little_endian_type(hid_t type);
H5TOOLS_DLL hid_t h5tools_get_big_endian_type(hid_t type);
-H5TOOLS_DLL htri_t H5Tdetect_vlen_str(hid_t tid);
+H5TOOLS_DLL htri_t h5tools_detect_vlen_str(hid_t tid);
H5TOOLS_DLL void h5tools_dump_simple_data(FILE *stream, const h5tool_format_t *info, hid_t container,
h5tools_context_t *ctx/*in,out*/, unsigned flags,