summaryrefslogtreecommitdiffstats
path: root/tools/h5dump.h
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>2000-03-09 17:53:48 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>2000-03-09 17:53:48 (GMT)
commitfb53598b36540a971c4ffa96e56b95c71730c70c (patch)
tree28c666f085fd8f4da3008f6245d3bf3fb70d7993 /tools/h5dump.h
parenta1b8768af219ad9e38f3f2c92b9b7c586a285a7f (diff)
downloadhdf5-fb53598b36540a971c4ffa96e56b95c71730c70c.zip
hdf5-fb53598b36540a971c4ffa96e56b95c71730c70c.tar.gz
hdf5-fb53598b36540a971c4ffa96e56b95c71730c70c.tar.bz2
[svn-r2011] added new structure to h5tools.h that is used to customize the output for
the header information in the dumper. the header is the part before the data block. in h5dump.c there is support for the new -xml option. prints the output in xml using the structure we just defined in h5tools.h. h5dump.h- changed the begin_obj and end_obj macros. take an extra parameter now
Diffstat (limited to 'tools/h5dump.h')
-rw-r--r--tools/h5dump.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5dump.h b/tools/h5dump.h
index 1b872de..083ac39 100644
--- a/tools/h5dump.h
+++ b/tools/h5dump.h
@@ -9,8 +9,8 @@
#define H5DUMP_MAX_RANK H5S_MAX_RANK
-#define begin_obj(obj,name) printf("%s \"%s\" %s\n", obj, name, BEGIN)
-#define end_obj() printf("%s\n", END);
+#define begin_obj(obj,name, begin) if (name) printf("%s \"%s\" %s\n", obj, name, begin); else printf("%s %s\n",obj,begin);
+#define end_obj(obj, end) printf("%s %s\n", end,obj);
#endif