summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_common.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
commit6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch)
tree5a7a112fe7a8a98c6fecb45b513789d15962eb3d /tools/h5diff/h5diff_common.c
parent6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff)
downloadhdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2
[svn-r11245] Purpose:
Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'tools/h5diff/h5diff_common.c')
-rw-r--r--tools/h5diff/h5diff_common.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c
index 691fe8a..11fba7c 100644
--- a/tools/h5diff/h5diff_common.c
+++ b/tools/h5diff/h5diff_common.c
@@ -38,10 +38,10 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
*-------------------------------------------------------------------------
*/
- if ( argc==2 && (strcmp("-h",argv[1])==0) )
+ if ( argc==2 && (strcmp("-h",argv[1])==0) )
usage();
- if ( argc<3 )
+ if ( argc<3 )
{
printf("Number of arguments is only %d\n", argc );
usage();
@@ -60,32 +60,32 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
* parse command line options
*-------------------------------------------------------------------------
*/
- for (i=3; i<argc ; i++)
+ for (i=3; i<argc ; i++)
{
/* get the single-letter switches */
if ( '-'==argv[i][0] )
{
- for (s=argv[i]+1; *s; s++)
+ for (s=argv[i]+1; *s; s++)
{
switch (*s) {
default:
printf("-%s is an invalid option\n", s );
usage();
break;
- case 'h':
+ case 'h':
usage();
break;
- case 'v':
+ case 'v':
options->m_verbose = 1;
break;
- case 'q':
+ case 'q':
/* use quiet mode; supress the message "0 differences found" */
options->m_quiet = 1;
break;
- case 'r':
+ case 'r':
options->m_report = 1;
break;
- case 'd':
+ case 'd':
/* if it is not another option */
if ( i<argc-1 &&'-' != argv[i+1][0] )
{
@@ -104,7 +104,7 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
usage();
}
break;
- case 'p':
+ case 'p':
if ( i<argc-1 &&'-' !=argv[i+1][0] )
{
options->p=1;
@@ -122,7 +122,7 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
usage();
}
break;
- case 'n':
+ case 'n':
if ( i<argc-1 && '-' !=argv[i+1][0] )
{
options->n=1;
@@ -141,7 +141,7 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
}
break;
} /*switch*/
- } /*for*/
+ } /*for*/
} /*if*/
else /* not single-letter switches */
@@ -184,21 +184,21 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
{
if (options->m_quiet || options->err_stat)
return;
-
+
if (options->cmn_objs==0)
- {
+ {
printf("No common objects found. Files are not comparable.\n");
if (!options->m_verbose)
printf("Use -v for a list of objects.\n");
}
-
+
if (options->not_cmp==1)
{
printf("Some objects are not comparable\n");
if (!options->m_verbose)
printf("Use -v for a list of objects.\n");
}
-
+
}
/*-------------------------------------------------------------------------
@@ -257,8 +257,8 @@ int check_f_input( const char *str )
{
double x;
- /*
- the atof return value on a hexadecimal input is different
+ /*
+ the atof return value on a hexadecimal input is different
on some systems; we do a character check for this
*/
if (strlen(str)>2 && str[0]=='0' && str[1]=='x')
@@ -274,7 +274,7 @@ int check_f_input( const char *str )
/*-------------------------------------------------------------------------
* Function: usage
*
- * Purpose: print a usage message
+ * Purpose: print a usage message
*
* Return: void
*