[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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user