summaryrefslogtreecommitdiffstats
path: root/perform/overhead.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 /perform/overhead.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 'perform/overhead.c')
-rw-r--r--perform/overhead.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/perform/overhead.c b/perform/overhead.c
index d9715e7..4835d44 100644
--- a/perform/overhead.c
+++ b/perform/overhead.c
@@ -60,7 +60,7 @@
#ifndef TRUE
#define TRUE 1
#endif /* TRUE */
-
+
typedef enum fill_t {
FILL_ALL,
FILL_FORWARD,
@@ -225,13 +225,13 @@ test(fill_t fill_style, const double splits[],
if ((dset=H5Dcreate(file, "chunked", H5T_NATIVE_INT,
fspace, dcpl))<0) goto error;
-#if !defined( __MWERKS__)
+#if !defined( __MWERKS__)
- /*
+ /*
workaround for a bug in the Metrowerks version 6.0 open function
- */
+ */
if ((fd=HDopen(FILE_NAME_1, O_RDONLY, 0666))<0) goto error;
-#endif
+#endif
for (i=1; i<=cur_size[0]; i++) {
@@ -267,7 +267,7 @@ test(fill_t fill_style, const double splits[],
}
-#if !defined( __MWERKS__)
+#if !defined( __MWERKS__)
/* Determine overhead */
if (verbose) {
@@ -282,9 +282,9 @@ test(fill_t fill_style, const double splits[],
(unsigned long)i,
(double)(hssize_t)(sb.st_size-i*sizeof(int))/(hssize_t)i);
}
-#endif
-
-
+#endif
+
+
}
H5Dclose(dset);
@@ -314,15 +314,15 @@ test(fill_t fill_style, const double splits[],
case FILL_ALL:
abort();
}
-
+
#if !defined( __MWERKS__)
-
+
if (HDfstat(fd, &sb)<0) goto error;
printf("%-7s %8.3f\n", sname,
(double)(hssize_t)(sb.st_size-cur_size[0]*sizeof(int))/
(hssize_t)cur_size[0]);
#endif
-
+
}
@@ -348,7 +348,7 @@ test(fill_t fill_style, const double splits[],
/*-------------------------------------------------------------------------
* Function: main
*
- * Purpose:
+ * Purpose:
*
* Return: Success: zero
*
@@ -378,7 +378,7 @@ main(int argc, char *argv[])
goto error;
}
if (H5Pclose(xfer)<0) goto error;
-
+
/* Parse command-line options */
for (i=1, j=0; i<argc; i++) {
if (!strcmp(argv[i], "forward")) {