mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Remove hbool_t from the public API (#5802)
* Remove hbool_t from the public API This was previously removed from the source code, but the API calls retained hbool_t in the public API calls. This commit removes hbool_t from the public APIs. hbool_t is retained as a typedef for bool in H5public.h so existing code doesn't break.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
* if one is needed.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "hdf5.h"
|
||||
@@ -102,7 +103,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);
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
* if one is needed.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "hdf5.h"
|
||||
@@ -102,7 +103,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 +126,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;
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
* is needed.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "hdf5.h"
|
||||
@@ -51,7 +52,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);
|
||||
|
||||
Reference in New Issue
Block a user