summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-03-04 14:08:58 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-03-04 14:08:58 (GMT)
commit1aa5cd4fa5d87b0a46607caa6323c20f4b922cae (patch)
tree708df2e5c109326d97db80e6097e35d1ec5d8a87 /tools/lib
parentf1c4d0ff3fbdfcebf3a22a24c26f1d69ecb3a5fe (diff)
downloadhdf5-1aa5cd4fa5d87b0a46607caa6323c20f4b922cae.zip
hdf5-1aa5cd4fa5d87b0a46607caa6323c20f4b922cae.tar.gz
hdf5-1aa5cd4fa5d87b0a46607caa6323c20f4b922cae.tar.bz2
[svn-r26353] Add VDS selection defines for ALL and NONE
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools.h2
-rw-r--r--tools/lib/h5tools_dump.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h
index 7ed60e8..1ddc584 100644
--- a/tools/lib/h5tools.h
+++ b/tools/lib/h5tools.h
@@ -99,6 +99,8 @@
#define VDS_POINT "POINT"
#define VDS_SRC_FILE "SRC_FILE"
#define VDS_SRC_DATASET "SRC_DATASET"
+#define VDS_NONE "SELECTION_NONE"
+#define VDS_ALL "SELECTION_ALL"
#define BEGIN "{"
#define END "}"
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index 3fee4d1..5e9cb4c 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -2868,7 +2868,7 @@ h5tools_print_virtual_selection(h5tools_str_t *buffer, const h5tool_format_t *in
h5tools_str_append(buffer, "%s", h5tools_dump_header_format->virtualselectionbegin);
switch(H5Sget_select_type(vspace)) {
case H5S_SEL_NONE: /* Nothing selected */
- h5tools_str_append(buffer, "NONE");
+ h5tools_str_append(buffer, "%s", VDS_NONE);
break;
case H5S_SEL_POINTS: /* Sequence of points selected */
h5tools_str_append(buffer, "%s %s ", VDS_POINT, h5tools_dump_header_format->virtualselectionblockbegin);
@@ -2887,7 +2887,7 @@ h5tools_print_virtual_selection(h5tools_str_t *buffer, const h5tool_format_t *in
h5tools_str_append(buffer, "%s", h5tools_dump_header_format->virtualselectionblockend);
break;
case H5S_SEL_ALL: /* Entire extent selected */
- h5tools_str_append(buffer, "ALL");
+ h5tools_str_append(buffer, "%s", VDS_ALL);
break;
default:
h5tools_str_append(buffer, "Unknown Selection");