summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-10-05 21:19:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-10-05 21:19:38 (GMT)
commit71f0aeff2a564ed6cc7a22be09b0a698f9e12e13 (patch)
tree03c0a3a388e34b0efa97d11904a9057e75065617 /tools/h5dump/h5dump.h
parent3bc05bfd2470fb0ae2301d511e48b708493a8e6b (diff)
downloadhdf5-71f0aeff2a564ed6cc7a22be09b0a698f9e12e13.zip
hdf5-71f0aeff2a564ed6cc7a22be09b0a698f9e12e13.tar.gz
hdf5-71f0aeff2a564ed6cc7a22be09b0a698f9e12e13.tar.bz2
[svn-r7540] Purpose:
Bug fixes and code cleanup Description: Changes to h5dump code: - Dump shared datatypes for any class of datatype, not just compound datatypes. - Cleaned up formatting to greatly reduce the amount of trailing whitespace emitted in output. Also removed some spurious blank lines from named datatype output. Added code to generate named datatype attribute test file. Added tests for dumping named datatypes in attributes for both DDL and XML output. Platforms tested: FreeBSD 4.9 (sleipnir) h5committest
Diffstat (limited to 'tools/h5dump/h5dump.h')
-rw-r--r--tools/h5dump/h5dump.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/h5dump/h5dump.h b/tools/h5dump/h5dump.h
index 77cd247..ba1eab2 100644
--- a/tools/h5dump/h5dump.h
+++ b/tools/h5dump/h5dump.h
@@ -25,6 +25,12 @@
printf("%s %s\n", (obj), (begin));
#define end_obj(obj,end) \
- printf("%s %s\n", (end), (obj));
+ if(HDstrlen(end)) \
+ printf("%s", end); \
+ if(HDstrlen(end) && HDstrlen(obj)) \
+ printf(" "); \
+ if(HDstrlen(obj)) \
+ printf("%s", obj); \
+ printf("\n");
#endif /* !H5DUMP_H__ */