diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-06-27 14:45:06 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-06-27 14:45:06 (GMT) |
commit | 7be3afb278aea67ba09a97f4b41c0aaaf5c47983 (patch) | |
tree | 24ed86ab2a5c982fbf182d2ac8cd892c3813bc34 /tools/h5dump | |
parent | 8d72542a50fac7a747fe0bfec8d2285de8efd29f (diff) | |
download | hdf5-7be3afb278aea67ba09a97f4b41c0aaaf5c47983.zip hdf5-7be3afb278aea67ba09a97f4b41c0aaaf5c47983.tar.gz hdf5-7be3afb278aea67ba09a97f4b41c0aaaf5c47983.tar.bz2 |
[svn-r12440] Purpose:
Code cleanup
Description:
Trim trailing whitespace in Makefile.am and C/C++ source files to make
diffing changes easier.
Platforms tested:
None necessary, whitespace only change
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 20 | ||||
-rw-r--r-- | tools/h5dump/h5dumpgentest.c | 14 |
2 files changed, 17 insertions, 17 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index c2bc761..7bf0ba3 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -756,9 +756,9 @@ print_datatype(hid_t type,unsigned in_group) } else if (H5Tequal(type, H5T_NATIVE_ULLONG)==TRUE) { printf("H5T_NATIVE_ULLONG"); } else { - + /* byte order */ - if (H5Tget_size(type)>1) + if (H5Tget_size(type)>1) { order = H5Tget_order(type); if (H5T_ORDER_LE==order) { @@ -773,9 +773,9 @@ print_datatype(hid_t type,unsigned in_group) } else { order_s = ""; } - + /* sign */ - if ((sign=H5Tget_sign(type))>=0) + if ((sign=H5Tget_sign(type))>=0) { if (H5T_SGN_NONE==sign) { sign_s = " unsigned"; @@ -787,7 +787,7 @@ print_datatype(hid_t type,unsigned in_group) } else { sign_s = " unknown-sign"; } - + /* print size, order, and sign */ printf("%lu-bit%s%s integer", (unsigned long)(8*H5Tget_size(type)), order_s, sign_s); @@ -816,9 +816,9 @@ print_datatype(hid_t type,unsigned in_group) printf("H5T_NATIVE_LDOUBLE"); #endif } else { - + /* byte order */ - if (H5Tget_size(type)>1) + if (H5Tget_size(type)>1) { order = H5Tget_order(type); if (H5T_ORDER_LE==order) { @@ -833,7 +833,7 @@ print_datatype(hid_t type,unsigned in_group) } else { order_s = ""; } - + /* print size and byte order */ printf("%lu-bit%s floating-point", (unsigned long)(8*H5Tget_size(type)), order_s); @@ -1678,7 +1678,7 @@ dump_named_datatype(hid_t type, const char *name) indentation(indent); printf("%s \"%s\" %s", dump_header_format->datatypebegin, name, dump_header_format->datatypeblockbegin); - + if (H5Tget_class(type) == H5T_COMPOUND) { print_datatype(type,1); } else { @@ -1686,7 +1686,7 @@ dump_named_datatype(hid_t type, const char *name) print_datatype(type,1); printf(";\n"); } - + /* print attributes */ indent += COL; H5Aiterate(type, NULL, dump_attr, NULL); diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c index e7bf7a7..89652f2 100644 --- a/tools/h5dump/h5dumpgentest.c +++ b/tools/h5dump/h5dumpgentest.c @@ -5427,20 +5427,20 @@ static void gent_longlinks(void) */ static int gent_ldouble(void) { - hid_t fid; + hid_t fid; hid_t did; hid_t tid; hid_t sid; size_t size; - hsize_t dims[1] = {3}; + hsize_t dims[1] = {3}; long double buf[3] = {1,2,3}; - + if ((fid = H5Fcreate(FILE52, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT))<0) goto error; - + if ((sid = H5Screate_simple(1, dims, NULL))<0) goto error; - + if ((tid = H5Tcopy(H5T_NATIVE_LDOUBLE))<0) goto error; @@ -5452,7 +5452,7 @@ static int gent_ldouble(void) if (H5Dwrite(did,tid,H5S_ALL,H5S_ALL,H5P_DEFAULT,buf)<0) goto error; - + if (H5Sclose(sid)<0) goto error; if (H5Tclose(tid)<0) @@ -5461,7 +5461,7 @@ static int gent_ldouble(void) goto error; if (H5Fclose(fid)<0) goto error; - + return 0; error: |