summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-12-17 06:58:33 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-12-17 06:58:33 (GMT)
commit44b35e2f8b3317cbb3f60c56ba678ed32fd6d3ea (patch)
treea6a83a3543f405da5232bb5a05b4999348b3f526 /tools
parent765faf883e3061a0f66b3d2074a8fd81d2aed659 (diff)
downloadhdf5-44b35e2f8b3317cbb3f60c56ba678ed32fd6d3ea.zip
hdf5-44b35e2f8b3317cbb3f60c56ba678ed32fd6d3ea.tar.gz
hdf5-44b35e2f8b3317cbb3f60c56ba678ed32fd6d3ea.tar.bz2
[svn-r28698] Minor normalization with trunk.
Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial only
Diffstat (limited to 'tools')
-rw-r--r--tools/h5dump/h5dumpgentest.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index 059fee5..0eeaec5 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -7502,22 +7502,17 @@ gent_charsets(void)
const char *utf8_p_;
} CharSetInfo;
- hid_t charset_dtid;
- hid_t ascii_dtid;
+ hid_t charset_dtid = H5Tcreate( H5T_COMPOUND, sizeof( CharSetInfo ) );
+ hid_t ascii_dtid = H5Tcreate( H5T_STRING, H5T_VARIABLE );
hid_t utf8_dtid = H5Tcreate( H5T_STRING, H5T_VARIABLE );
const char * writeData[] = { "ascii", "utf8", };
sid = H5Screate_simple( 1, dim, NULL );
fid = H5Fcreate( FILE68, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT );
-
- charset_dtid = H5Tcreate( H5T_COMPOUND, sizeof( CharSetInfo ) );
-
- ascii_dtid = H5Tcreate( H5T_STRING, H5T_VARIABLE );
status = H5Tset_cset( ascii_dtid, H5T_CSET_ASCII );
HDassert(status >= 0);
H5Tinsert( charset_dtid, "ascii", HOFFSET(CharSetInfo, ascii_p_ ), ascii_dtid );
- utf8_dtid = H5Tcreate( H5T_STRING, H5T_VARIABLE );
status = H5Tset_cset( utf8_dtid, H5T_CSET_UTF8 );
HDassert(status >= 0);
H5Tinsert( charset_dtid, "utf8", HOFFSET( CharSetInfo, utf8_p_ ), utf8_dtid );