summaryrefslogtreecommitdiffstats
path: root/tools/h5import
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-01-30 04:29:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-01-30 04:29:13 (GMT)
commitfd70b2afa883f94718ffb7f4f33d104d76e3fe0a (patch)
treec1add8db2a4848202d86a9b274bfaf8c7b80e961 /tools/h5import
parent35b0159a0a5f1f4b80e305204ea51a742b052403 (diff)
downloadhdf5-fd70b2afa883f94718ffb7f4f33d104d76e3fe0a.zip
hdf5-fd70b2afa883f94718ffb7f4f33d104d76e3fe0a.tar.gz
hdf5-fd70b2afa883f94718ffb7f4f33d104d76e3fe0a.tar.bz2
[svn-r18197] Description:
Trim trailing whitespace from source code files with this command: find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.f90" \) -print |xargs -n 1 sed -i "" 's/[[:blank:]]*$//' Tested on: None - eyeballed only
Diffstat (limited to 'tools/h5import')
-rwxr-xr-xtools/h5import/h5import.c20
-rwxr-xr-xtools/h5import/h5import.h2
2 files changed, 11 insertions, 11 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c
index e9e7dac..24428cb 100755
--- a/tools/h5import/h5import.c
+++ b/tools/h5import/h5import.c
@@ -766,7 +766,7 @@ readFloatData(FILE **strm, struct Input *in)
/* same as TEXTFP */
case 2: /*TEXTFPE */
-
+
for (i = 0; i < len; i++, fp32++)
{
if (fscanf(*strm, "%f", fp32) != 1)
@@ -775,7 +775,7 @@ readFloatData(FILE **strm, struct Input *in)
return (-1);
}
}
-
+
fp32 = (H5DT_FLOAT32 *) in->data;
break;
@@ -815,7 +815,7 @@ readFloatData(FILE **strm, struct Input *in)
/* same as TEXTFP */
case 2: /*TEXTFPE */
-
+
for (i = 0; i < len; i++, fp64++)
{
if (fscanf(*strm, "%lf", fp64) != 1)
@@ -824,7 +824,7 @@ readFloatData(FILE **strm, struct Input *in)
return (-1);
}
}
-
+
fp64 = (H5DT_FLOAT64 *) in->data;
break;
@@ -1437,7 +1437,7 @@ processConfigurationFile(char *infile, struct Input *in, FILE **strm)
if (in->configOptionVector[COMPRESS] == 0)
in->compressionType = 0;
-
+
break;
case 12: /* EXTERNAL-STORAGE */
@@ -1587,16 +1587,16 @@ static int
parsePathInfo(struct path_info *path, char *temp)
{
const char delimiter[] = "/";
- char *token;
+ char *token;
int i=0;
const char *err1 = "Path string larger than MAX_PATH_NAME_LENGTH.\n";
token = HDstrtok (temp, delimiter);
- if (HDstrlen(token) >= MAX_PATH_NAME_LENGTH)
+ if (HDstrlen(token) >= MAX_PATH_NAME_LENGTH)
{
(void) fprintf(stderr, err1);
return (-1);
- }
+ }
HDstrcpy(path->group[i++],token);
@@ -1609,7 +1609,7 @@ parsePathInfo(struct path_info *path, char *temp)
{
(void) fprintf(stderr, err1);
return (-1);
- }
+ }
HDstrcpy(path->group[i++],token);
}
path->count = i;
@@ -1621,7 +1621,7 @@ parseDimensions(struct Input *in, char *strm)
{
const char delimiter[] = ",";
char temp[255];
- char *token;
+ char *token;
int i=0;
const char *err1 = "Unable to allocate dynamic memory.\n";
diff --git a/tools/h5import/h5import.h b/tools/h5import/h5import.h
index cbc6bf2..9e4f6e8 100755
--- a/tools/h5import/h5import.h
+++ b/tools/h5import/h5import.h
@@ -38,7 +38,7 @@
#define ERR 20 /* invalid token */
#define MAX_GROUPS_IN_PATH 20
-#define MAX_PATH_NAME_LENGTH 255
+#define MAX_PATH_NAME_LENGTH 255
#define NUM_KEYS 14
#define MIN_NUM_DIMENSION 1
#define MAX_NUM_DIMENSION 32