diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-10-06 16:11:18 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-10-06 16:11:18 (GMT) |
commit | defe612ab21a22b9d54e19fa332d45f8489a6da5 (patch) | |
tree | d142a0ce72e5f80a3cba336542e5cadc96458a8c /tools/lib/h5tools.c | |
parent | 5d9f7ebd4c1fb7a008aaa5190fa212dbca5c711c (diff) | |
download | hdf5-defe612ab21a22b9d54e19fa332d45f8489a6da5.zip hdf5-defe612ab21a22b9d54e19fa332d45f8489a6da5.tar.gz hdf5-defe612ab21a22b9d54e19fa332d45f8489a6da5.tar.bz2 |
[svn-r9370] Purpose:
Refactor code
Description:
Refactor common code for determining the native type for using in the
tools into separate routine.
Also, reduce diffs between the two branches and bring back some fixes from
the development branch to the release branch.
Platforms tested:
FreeBSD 4.10 (sleipnir)
too minor to require h5committest
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r-- | tools/lib/h5tools.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index d3a2d7a..dd96aa7 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -43,8 +43,6 @@ #define ALIGN(A,Z) ((((A) + (Z) - 1) / (Z)) * (Z)) - - /* global variables */ int indent; int compound_data; @@ -1137,15 +1135,8 @@ h5tools_dump_dset(FILE *stream, const h5dump_t *info, hid_t dset, hid_t _p_type, if (info->raw) p_type = H5Tcopy(f_type); - else { - H5T_class_t type_class; - - type_class = H5Tget_class(f_type); - if(type_class==H5T_BITFIELD) - p_type=H5Tcopy(f_type); - else - p_type = H5Tget_native_type(f_type,H5T_DIR_DEFAULT); - } + else + p_type = h5tools_get_native_type(f_type); H5Tclose(f_type); @@ -1219,3 +1210,4 @@ h5tools_dump_mem(FILE *stream, const h5dump_t *info, hid_t obj_id, hid_t type, return h5tools_dump_simple_mem(stream, info, obj_id, type, space, mem, indentlevel); } + |