summaryrefslogtreecommitdiffstats
path: root/examples/h5_shared_mesg.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-09-16 15:52:51 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-09-16 15:52:51 (GMT)
commitbdd7d59902483885dd8b883f3b2393e77383e5e8 (patch)
treeaaf20ab132d057b95b3c016d50fc22b77719084b /examples/h5_shared_mesg.c
parent8bc0d5ed9019a681e1ea20c24264415d01c1cf2a (diff)
downloadhdf5-bdd7d59902483885dd8b883f3b2393e77383e5e8.zip
hdf5-bdd7d59902483885dd8b883f3b2393e77383e5e8.tar.gz
hdf5-bdd7d59902483885dd8b883f3b2393e77383e5e8.tar.bz2
[svn-r15628] Description:
Remove trailing whitespace from C/C++ source files, with the following script: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Tested on: Mac OS X/32 10.5.5 (amazon) No need for h5committest, just whitespace changes...
Diffstat (limited to 'examples/h5_shared_mesg.c')
-rw-r--r--examples/h5_shared_mesg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/h5_shared_mesg.c b/examples/h5_shared_mesg.c
index 68340e0..a2edb38 100644
--- a/examples/h5_shared_mesg.c
+++ b/examples/h5_shared_mesg.c
@@ -17,7 +17,7 @@
* This program illustrates the usage of HDF5's implicit message sharing
* feature, which can be used to save space when the same messages are
* used many times in a file.
- *
+ *
* This example creates a standard file using file creation property lists
* to control which messages are shared. Messages that can be shared are
* datatypes, dataspaces, attributes, fill values, and filter pipelines.
@@ -153,7 +153,7 @@ int main(void)
ret = create_standard_file("only_huge_mesgs_file.h5", fcpl_id);
if(ret < 0) goto error;
-
+
/* Or, suppose we only wanted to shared dataspaces and
* attributes (which might make sense if we were going to use committed
@@ -176,7 +176,7 @@ int main(void)
if(ret < 0) goto error;
ret = H5Pset_shared_mesg_index(fcpl_id, 1, H5O_SHMESG_ATTR_FLAG, 40);
if(ret < 0) goto error;
-
+
ret = create_standard_file("separate_indexes_file.h5", fcpl_id);
if(ret < 0) goto error;
@@ -242,7 +242,7 @@ create_standard_file(const char *filename, hid_t fcpl_id)
{
hid_t file_id=-1;
hid_t type_id=-1, temp_type_id=-1;
- hsize_t dims[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
+ hsize_t dims[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
hid_t space_id=-1;
hid_t attr_type_id = -1;
hid_t attr_space_id = -1;
@@ -252,7 +252,7 @@ create_standard_file(const char *filename, hid_t fcpl_id)
int x;
herr_t ret;
- /* Create the file */
+ /* Create the file */
file_id = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl_id, H5P_DEFAULT);
if(file_id < 0) goto error;