diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-09-16 16:22:16 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-09-16 16:22:16 (GMT) |
commit | b9be0455961ca1098bc4977bf1138394932b75db (patch) | |
tree | 8bf7377bbda85d614e4e5984c5a1a59ac323310e /c++/test/tvlstr.cpp | |
parent | 37a1f87664a1b2026e1d2a1dd5033eb2e8b1f5fc (diff) | |
download | hdf5-b9be0455961ca1098bc4977bf1138394932b75db.zip hdf5-b9be0455961ca1098bc4977bf1138394932b75db.tar.gz hdf5-b9be0455961ca1098bc4977bf1138394932b75db.tar.bz2 |
[svn-r15629] 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 'c++/test/tvlstr.cpp')
-rw-r--r-- | c++/test/tvlstr.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/c++/test/tvlstr.cpp b/c++/test/tvlstr.cpp index fc25aeb..7f6c8d8 100644 --- a/c++/test/tvlstr.cpp +++ b/c++/test/tvlstr.cpp @@ -76,7 +76,7 @@ void *test_vlstr_alloc_custom(size_t size, void *info) * This weird contortion is required on the DEC Alpha to keep the * alignment correct - QAK */ - + extra = MAX(sizeof(void *),sizeof(size_t)); if((ret_value = HDmalloc(extra + size)) != NULL) { @@ -108,7 +108,7 @@ void test_vlstr_free_custom(void *_mem, void *info) * This weird contortion is required on the DEC Alpha to keep the * alignment correct - QAK */ - + extra=MAX(sizeof(void *),sizeof(size_t)); if(_mem!=NULL) { @@ -172,7 +172,7 @@ static void test_vlstrings_basic() dataset2.close(); HDfree(wdata2); - // Change to the custom memory allocation routines for reading + // Change to the custom memory allocation routines for reading // VL string. DSetMemXferPropList xfer; size_t mem_used = 0; // Memory used during allocation @@ -239,7 +239,7 @@ static void test_vlstrings_basic() /*------------------------------------------------------------------------- * Function: test_vlstrings_special * - * Purpose: Test VL string code for special string cases, nil and + * Purpose: Test VL string code for special string cases, nil and * zero-sized. * * Return: None @@ -305,11 +305,11 @@ static void test_vlstrings_special() // Close Dataset. dataset.close(); - /* + /* * Create another dataset to test nil strings. */ - // Create the property list and set the fill value for the second + // Create the property list and set the fill value for the second // dataset. DSetCreatPropList dcpl; char *fill = NULL; // Fill value @@ -595,7 +595,7 @@ static void test_write_vl_string_attribute() // Open attribute ATTRSTR_NAME again. gr_attr = root.openAttribute(ATTRSTR_NAME); - // The attribute string written is freed below, in the + // The attribute string written is freed below, in the // test_read_vl_string_attribute() test // Close attribute and file @@ -672,7 +672,7 @@ static void test_read_vl_string_attribute() } // test_read_vl_string_attribute /* Helper routine for test_vl_rewrite() */ -static void write_scalar_dset(H5File& file, DataType& type, DataSpace& space, +static void write_scalar_dset(H5File& file, DataType& type, DataSpace& space, char *name, char *data) { DataSet dset; @@ -690,7 +690,7 @@ static void write_scalar_dset(H5File& file, DataType& type, DataSpace& space, } /* Helper routine for test_vl_rewrite() */ -static void read_scalar_dset(H5File& file, DataType& type, DataSpace& space, +static void read_scalar_dset(H5File& file, DataType& type, DataSpace& space, char *name, char *data) { char *data_read; |