summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_util.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-10-30 14:40:01 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-10-30 14:40:01 (GMT)
commit46646fc6548090c2c88d96fb4991165885b1a223 (patch)
tree318e8bb6e05eb2bf6d5a54ecba36a4c29700fc5b /tools/lib/h5diff_util.c
parent9ed099022e7c976cda3d3daadf84bc4b92a847f6 (diff)
downloadhdf5-46646fc6548090c2c88d96fb4991165885b1a223.zip
hdf5-46646fc6548090c2c88d96fb4991165885b1a223.tar.gz
hdf5-46646fc6548090c2c88d96fb4991165885b1a223.tar.bz2
[svn-r7792] Purpose:
h5diff new features bug fix Description: implemented the diff for STRING and ARRAY types fixed a bug. when the datasets are empty, do not try to compare them . the check empty is made with H5Dgetstorage_size Solution: Platforms tested: linux solaris 5.7 IRIX Misc. update:
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r--tools/lib/h5diff_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c
index 36175c7..3340e2d 100644
--- a/tools/lib/h5diff_util.c
+++ b/tools/lib/h5diff_util.c
@@ -25,7 +25,7 @@
* Date: May 30, 2003
*
* Modifications: October 29, 2003
- * Added support for H5T_COMPOUND types;
+ * Added support for H5T_COMPOUND, H5T_STRING, H5T_ARRAY types;
*
*-------------------------------------------------------------------------
*/
@@ -34,6 +34,9 @@ int diff_can(hid_t type_id)
int ret=0;
if ( ((H5Tget_class(type_id) == H5T_COMPOUND)==1)|| /* get class */
+ ((H5Tget_class(type_id) == H5T_STRING)==1)|| /* get class */
+ ((H5Tget_class(type_id) == H5T_ARRAY)==1)|| /* get class */
+
(H5Tequal(type_id, H5T_NATIVE_FLOAT)==1)||
(H5Tequal(type_id, H5T_NATIVE_DOUBLE)==1)||
(H5Tequal(type_id, H5T_NATIVE_INT)==1)||