mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
Convert hbool_t --> bool in examples (#3492)
This commit is contained in:
parent
9c85c6ec08
commit
93748d4ab5
@ -102,7 +102,7 @@ fill_databuf(hsize_t start[], hsize_t count[], hsize_t stride[], C_DATATYPE *dat
|
||||
static void
|
||||
cleanup(char *filename)
|
||||
{
|
||||
hbool_t do_cleanup = getenv(HDF5_NOCLEANUP) ? 0 : 1;
|
||||
bool do_cleanup = getenv(HDF5_NOCLEANUP) ? false : true;
|
||||
|
||||
if (do_cleanup)
|
||||
MPI_File_delete(filename, MPI_INFO_NULL);
|
||||
|
@ -102,7 +102,7 @@ fill_databuf(hsize_t start[], hsize_t count[], hsize_t stride[], C_DATATYPE *dat
|
||||
static void
|
||||
cleanup(char *filename)
|
||||
{
|
||||
hbool_t do_cleanup = getenv(HDF5_NOCLEANUP) ? 0 : 1;
|
||||
bool do_cleanup = getenv(HDF5_NOCLEANUP) ? false : true;
|
||||
|
||||
if (do_cleanup)
|
||||
MPI_File_delete(filename, MPI_INFO_NULL);
|
||||
@ -125,7 +125,7 @@ write_dataset_some_no_sel(hid_t file_id, hid_t dxpl_id)
|
||||
hsize_t start[EXAMPLE_DSET_DIMS];
|
||||
hsize_t stride[EXAMPLE_DSET_DIMS];
|
||||
hsize_t count[EXAMPLE_DSET_DIMS];
|
||||
hbool_t no_selection;
|
||||
bool no_selection;
|
||||
hid_t dset_id = H5I_INVALID_HID;
|
||||
hid_t dcpl_id = H5I_INVALID_HID;
|
||||
hid_t file_dataspace = H5I_INVALID_HID;
|
||||
|
@ -51,7 +51,7 @@ typedef int EXAMPLE_DSET_C_DATATYPE;
|
||||
static void
|
||||
cleanup(char *filename, hid_t fapl_id)
|
||||
{
|
||||
hbool_t do_cleanup = getenv(HDF5_NOCLEANUP) ? 0 : 1;
|
||||
bool do_cleanup = getenv(HDF5_NOCLEANUP) ? false : true;
|
||||
|
||||
if (do_cleanup)
|
||||
H5Fdelete(filename, fapl_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user