diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2010-11-09 21:13:53 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2010-11-09 21:13:53 (GMT) |
commit | 40b3a8dee9bd7ece6e9e3a2740d804e93c83f589 (patch) | |
tree | cfb50604505cedc8c4c09467ca1f0336ea43f7dd /tools/h5ls/h5ls.c | |
parent | f9d2419501f22f655738f717f758adab464b78a7 (diff) | |
download | hdf5-40b3a8dee9bd7ece6e9e3a2740d804e93c83f589.zip hdf5-40b3a8dee9bd7ece6e9e3a2740d804e93c83f589.tar.gz hdf5-40b3a8dee9bd7ece6e9e3a2740d804e93c83f589.tar.bz2 |
[svn-r19751] Purpose:
Fixed Bug# 1979 Output from h5ls -rdlS on nested compound datatypes is
difficult to parse.
Description:
Update to add curly brackets for the nested compound members, when
S (--simple) option is used with -l (--label), so user can tell
which members blong to which compound type.
Tested:
jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32)
Diffstat (limited to 'tools/h5ls/h5ls.c')
-rw-r--r-- | tools/h5ls/h5ls.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index b1d9ee9..b74d525 100644 --- a/tools/h5ls/h5ls.c +++ b/tools/h5ls/h5ls.c @@ -1263,8 +1263,16 @@ dump_dataset_values(hid_t dset) info.arr_suf = ""; info.arr_sep = " "; - info.cmpd_pre = ""; - info.cmpd_suf = ""; + if (label_g) + { + info.cmpd_pre = "{"; + info.cmpd_suf = "}"; + } + else + { + info.cmpd_pre = ""; + info.cmpd_suf = ""; + } info.cmpd_sep = " "; if (label_g) info.cmpd_name = "%s="; |