[svn-r7813] Purpose:

h5diff new feature


Description:

added compare for attributes
a new options flag (-a) was added to the options structure. it is 0 by default (no compare )
the output of the compare is the same that for datasets, and all the other flags also apply for attributes
(the memory compare is done in the same function diff_array)
all the other requirements for compare of datasets (type, space) are identical too




Platforms tested:
linux
solaris 2.7
IRIX


Misc. update:
This commit is contained in:
Pedro Vicente Nunes
2003-11-03 17:10:57 -05:00
parent 15505bd890
commit 75a5e8a0e6
32 changed files with 500 additions and 157 deletions

View File

@@ -19,7 +19,7 @@
/* Due to alignment issue in Alpha clusters, options must be declared here
* not as a local variable in main().
*/
diff_opt_t options = {0,0,0,0,0,0,0,0};
diff_opt_t options = {0,0,0,0,0,0,0,0,0};
static void usage(void);
static int check_n_input( const char* );
@@ -116,6 +116,9 @@ int main(int argc, const char *argv[])
case 'v':
options.verbose = 1;
break;
case 'a':
options.attr = 1;
break;
case 'r':
options.r = 1;
break;
@@ -304,6 +307,7 @@ void usage(void)
printf("[-n count] Print difference up to count number\n");
printf("[-d delta] Print difference when it is greater than limit delta\n");
printf("[-p relative] Print difference when it is greater than a relative limit\n");
printf("[-a] Compare attributes\n");
printf("\n");
printf("Items in [] are optional\n");
printf("[obj1] and [obj2] are HDF5 objects (datasets, groups or datatypes)\n");