diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-25 20:00:56 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-25 20:00:56 (GMT) |
commit | 32220914a5313c0586dc59c89946d31334ad8b63 (patch) | |
tree | 8bc3eebbdb4591ea3439c20e626b7197e83c8a20 /tools/h5ls | |
parent | f841a942427dd5d5fc139e30e07125de634e1863 (diff) | |
download | hdf5-32220914a5313c0586dc59c89946d31334ad8b63.zip hdf5-32220914a5313c0586dc59c89946d31334ad8b63.tar.gz hdf5-32220914a5313c0586dc59c89946d31334ad8b63.tar.bz2 |
[svn-r7401] 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index 25ef80b..0cb64fe 100644 --- a/tools/h5ls/h5ls.c +++ b/tools/h5ls/h5ls.c @@ -1377,7 +1377,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)); |