summaryrefslogtreecommitdiffstats
path: root/tools/h5ls
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-10-05 15:13:14 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-10-05 15:13:14 (GMT)
commit1f8687691d6620473440d745ea6cbe9e16b3d3c1 (patch)
treebcf783cf560fbfa1e7e3a7ca3b0778abb34e9ac1 /tools/h5ls
parent9595bba3a45563ddff3a732cd460fecf0c04530a (diff)
downloadhdf5-1f8687691d6620473440d745ea6cbe9e16b3d3c1.zip
hdf5-1f8687691d6620473440d745ea6cbe9e16b3d3c1.tar.gz
hdf5-1f8687691d6620473440d745ea6cbe9e16b3d3c1.tar.bz2
[svn-r9365]
Purpose: change feature Description: Back up supporting bitfield and time datatypes in H5Tget_native_type. Leave it for future support. Simply returns "not supported" error message for now. Platforms tested: h5committest Misc. update: RELEASE.txt
Diffstat (limited to 'tools/h5ls')
-rw-r--r--tools/h5ls/h5ls.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index 8076efd..ca0140d 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -1386,7 +1386,13 @@ list_attr (hid_t obj, const char *attr_name, void UNUSED *op_data)
if (hexdump_g) {
p_type = H5Tcopy(type);
} else {
- p_type = H5Tget_native_type(type,H5T_DIR_DEFAULT);
+ H5T_class_t type_class;
+
+ type_class = H5Tget_class(type);
+ if(type_class==H5T_BITFIELD)
+ p_type=H5Tcopy(type);
+ else
+ p_type = H5Tget_native_type(type,H5T_DIR_DEFAULT);
}
if (p_type>=0) {
temp_need= nelmts * MAX(H5Tget_size(type), H5Tget_size(p_type));