summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_util.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-10-29 21:02:53 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-10-29 21:02:53 (GMT)
commit9ed099022e7c976cda3d3daadf84bc4b92a847f6 (patch)
tree1e80ca1e6b1675d368a1c997384f3de03b41b560 /tools/lib/h5diff_util.c
parent90e269d55269a75fdfab2cc55eb7fafe6d07711a (diff)
downloadhdf5-9ed099022e7c976cda3d3daadf84bc4b92a847f6.zip
hdf5-9ed099022e7c976cda3d3daadf84bc4b92a847f6.tar.gz
hdf5-9ed099022e7c976cda3d3daadf84bc4b92a847f6.tar.bz2
[svn-r7791] Purpose:
h5diff new features Description: implemented diff for compound types. so far it only compares the integer and float classes of these compound types. this is done with a new recursive function that compares datum by datum Platforms tested: linux solaris 2.7 IRIX Misc. update:
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r--tools/lib/h5diff_util.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c
index 0bf4a8e..36175c7 100644
--- a/tools/lib/h5diff_util.c
+++ b/tools/lib/h5diff_util.c
@@ -22,13 +22,19 @@
*
* Purpose: Check if TYPE_ID is supported; only the listed types are
* supported in the current version
+ * Date: May 30, 2003
+ *
+ * Modifications: October 29, 2003
+ * Added support for H5T_COMPOUND types;
*
*-------------------------------------------------------------------------
*/
int diff_can(hid_t type_id)
{
int ret=0;
- if ( (H5Tequal(type_id, H5T_NATIVE_FLOAT)==1)||
+
+ if ( ((H5Tget_class(type_id) == H5T_COMPOUND)==1)|| /* get class */
+ (H5Tequal(type_id, H5T_NATIVE_FLOAT)==1)||
(H5Tequal(type_id, H5T_NATIVE_DOUBLE)==1)||
(H5Tequal(type_id, H5T_NATIVE_INT)==1)||
(H5Tequal(type_id, H5T_NATIVE_UINT)==1)||