[svn-r15439] Add the following patch

===
The following patch to h5copy.c on or near line 173 makes the
tool substantially more useful...
     *flag = (*flag) | fla;
Because the command-line option parsing permits multiple '-f' arguments,
this will have the effect of or'ing the flags together so one can do
someting like....

~/tmp/hdf5-1.8.1/tools/h5copy/h5copy -i multi_ucd3d.h5 -s block5 -o gorfo -d foo -f shallow -f soft

Mark C. Miller, Lawrence Livermore National Laboratory
email: mailto:miller86@llnl.gov
===
This commit is contained in:
Peter Cao 2008-08-06 13:16:44 -05:00
parent e47c44c04a
commit 2b3a491ee1

View File

@ -170,7 +170,7 @@ static int parse_flag(const char* str_flag, unsigned *flag)
return -1;
}
*flag = fla;
*flag = (*flag) | fla;
return 0;
}