summaryrefslogtreecommitdiffstats
path: root/tools/h5ls
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-08-25 19:57:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-08-25 19:57:22 (GMT)
commit3bec1171088e60d6b70f50a6996b1e77b92c2c5e (patch)
tree3ce7adc20129881b76fa2582aa5d975a5f3f69d4 /tools/h5ls
parent81b8f134f8fec4c637873bc7366428a8a7ce2589 (diff)
downloadhdf5-3bec1171088e60d6b70f50a6996b1e77b92c2c5e.zip
hdf5-3bec1171088e60d6b70f50a6996b1e77b92c2c5e.tar.gz
hdf5-3bec1171088e60d6b70f50a6996b1e77b92c2c5e.tar.bz2
[svn-r7399] Purpose:
Code cleanup Description: Remove various "fixtype" routines which duplicate (and actually pre-date) the functionality in H5Tget_native_type in favor of having the tools call H5Tget_native_type(). This provides the same functionality (actually better functionality, since the old "fixtype" routines didn't handle alignment of compound fields correctly) and reduces the amount of code to maintain. Add additional tests to dump out a "complex" compound datatype which exercises more code in the library for aligning compound fields correctly. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
Diffstat (limited to 'tools/h5ls')
-rw-r--r--tools/h5ls/h5ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index d604c93..aeb4594 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -1381,7 +1381,7 @@ list_attr (hid_t obj, const char *attr_name, void UNUSED *op_data)
if (hexdump_g) {
p_type = H5Tcopy(type);
} else {
- p_type = h5tools_fixtype(type);
+ p_type = H5Tget_native_type(type,H5T_DIR_DEFAULT);
}
if (p_type>=0) {
temp_need= nelmts * MAX(H5Tget_size(type), H5Tget_size(p_type));