summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5trav.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-04-23 21:25:33 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-04-23 21:25:33 (GMT)
commitaf184d7e8c4a865ecb74b24796f73e896890ebc2 (patch)
treeb6c4e38823285717df61e2b5829cc4b40a63d56b /tools/lib/h5trav.h
parent507ab9cafb1ceb89ae52e1e53253c7efa50c0387 (diff)
downloadhdf5-af184d7e8c4a865ecb74b24796f73e896890ebc2.zip
hdf5-af184d7e8c4a865ecb74b24796f73e896890ebc2.tar.gz
hdf5-af184d7e8c4a865ecb74b24796f73e896890ebc2.tar.bz2
[svn-r8414] Purpose:
bug fix Description: added compability for the 1.4 version Solution: Platforms tested: free BSD linux Misc. update:
Diffstat (limited to 'tools/lib/h5trav.h')
-rw-r--r--tools/lib/h5trav.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/tools/lib/h5trav.h b/tools/lib/h5trav.h
index af41a4e..4493b0b 100644
--- a/tools/lib/h5trav.h
+++ b/tools/lib/h5trav.h
@@ -27,15 +27,22 @@
* the TYPE can be:
* H5G_UNKNOWN = -1,
* H5G_LINK, Object is a symbolic link
- * H5G_GROUP, Object is a group
- * H5G_DATASET, Object is a dataset
- * H5G_TYPE, Object is a named data type
+ * H5G_GROUP, Object is a group
+ * H5G_DATASET, Object is a dataset
+ * H5G_TYPE, Object is a named data type
*-------------------------------------------------------------------------
*/
+/* hack to alow v1.4 compability */
+#ifdef H5_WANT_H5_V1_4_COMPAT
+ typedef int H5G_obj_t1;
+#else
+ typedef H5G_obj_t H5G_obj_t1;
+#endif
+
typedef struct trav_info_t {
- char *name;
- H5G_obj_t type;
+ char *name;
+ H5G_obj_t1 type;
} trav_info_t;
@@ -58,7 +65,7 @@ typedef struct trav_obj_t {
unsigned flags[2]; /* h5diff.object is present or not in both files*/
char *name; /* name */
int displayed; /* hard link already traversed once */
- H5G_obj_t type; /* type of object */
+ H5G_obj_t1 type; /* type of object */
trav_link_t *links; /* array of possible link names */
int sizelinks; /* size of links array */
int nlinks; /* number of links */
@@ -122,12 +129,12 @@ int trav_table_search(unsigned long *objno,
void trav_table_add(unsigned long *objno,
char *objname,
- H5G_obj_t type,
+ H5G_obj_t1 type,
trav_table_t *table);
void trav_table_addflags(unsigned *flags,
char *objname,
- H5G_obj_t type,
+ H5G_obj_t1 type,
trav_table_t *table);