summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-06-03 15:50:19 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-06-03 15:50:19 (GMT)
commit12b00a5dd4d1a0f0caa8b5904f99d870595fd4c4 (patch)
tree1720c2bbdcf72f20a4d80411e064d478488cb6e3 /tools
parent94bf3a6d7b302bd1abedc848a7855898adfb79c0 (diff)
downloadhdf5-12b00a5dd4d1a0f0caa8b5904f99d870595fd4c4.zip
hdf5-12b00a5dd4d1a0f0caa8b5904f99d870595fd4c4.tar.gz
hdf5-12b00a5dd4d1a0f0caa8b5904f99d870595fd4c4.tar.bz2
[svn-r6947] Purpose:
added some comments Description: Solution: Platforms tested: linux Misc. update:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5diff/h5diff.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/tools/h5diff/h5diff.c b/tools/h5diff/h5diff.c
index 682acd0..984dce4 100644
--- a/tools/h5diff/h5diff.c
+++ b/tools/h5diff/h5diff.c
@@ -844,31 +844,32 @@ static
int diff_dataset( hid_t file1_id, hid_t file2_id, const char *obj1_name,
const char *obj2_name, options_t options )
{
+ void *edata;
+ hid_t (*func)(void*);
+ hid_t dset1_id =-1;
+ hid_t dset2_id =-1;
+ hid_t space1_id =-1;
+ hid_t space2_id =-1;
+ hid_t f_type1=-1, f_type2=-1; /* file data type */
+ hid_t m_type1=-1, m_type2=-1; /* memory data type */
+ size_t f_size1, f_size2; /* size of type in file */
+ size_t m_size1, m_size2; /* size of type in memory */
+ H5T_sign_t sign1, sign2; /* sign of type */
+ int rank1, rank2;
+ void *buf1=NULL, *buf2=NULL;
+ hsize_t tot_cnt1, tot_cnt2;
+ hsize_t dims1[32], dims2[32];
+ hsize_t maxdim1[32], maxdim2[32];
+ H5T_class_t tclass1;
+ H5T_class_t tclass2;
+ int nfound=0; /* number of differences found */
+ const char *name1=NULL; /* relative names */
+ const char *name2=NULL;
+ int maxdim_diff=0; /* maximum dimensions are different */
+ int dim_diff=0; /* current dimensions are different */
+ int can1, can2; /* supported diff */
+ int i;
- hid_t dset1_id =-1;
- hid_t dset2_id =-1;
- hid_t space1_id =-1;
- hid_t space2_id =-1;
- hid_t f_type1=-1, f_type2=-1; /* file data type */
- hid_t m_type1=-1, m_type2=-1; /* memory data type */
- size_t f_size1, f_size2; /* size of type in file */
- size_t m_size1, m_size2; /* size of type in memory */
- H5T_sign_t sign1, sign2; /* sign of type */
- int rank1, rank2;
- void *buf1=NULL, *buf2=NULL;
- hsize_t tot_cnt1, tot_cnt2;
- hsize_t dims1[32], dims2[32], maxdim1[32], maxdim2[32];
- H5T_class_t tclass1;
- H5T_class_t tclass2;
- int i;
- int nfound=0; /* number of differences found */
- void *edata;
- hid_t (*func)(void*);
- const char *name1=NULL; /* relative names */
- const char *name2=NULL;
- int maxdim_diff=0;
- int dim_diff=0;
- int can1, can2;
/* disable error reporting */
H5Eget_auto(&func, &edata);
@@ -885,7 +886,6 @@ int diff_dataset( hid_t file1_id, hid_t file2_id, const char *obj1_name,
printf("Cannot open dataset <%s>\n", obj1_name );
goto out;
}
-
if ( (dset2_id = H5Dopen(file2_id,obj2_name)) < 0 )
{
printf("Cannot open dataset <%s>\n", obj2_name );
@@ -922,7 +922,7 @@ int diff_dataset( hid_t file1_id, hid_t file2_id, const char *obj1_name,
* Get the file data type
*-------------------------------------------------------------------------
*/
-
+
/* Get the data type */
if ( (f_type1 = H5Dget_type(dset1_id)) < 0 )
goto out;