summaryrefslogtreecommitdiffstats
path: root/src/H5Clog.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-09-05 21:52:30 (GMT)
committerGitHub <noreply@github.com>2023-09-05 21:52:30 (GMT)
commit8253ab9ebf6a082dc07eb931f27b169d6a45d577 (patch)
tree47630856491e54f5d28e1608ffa5e2f976dc9c95 /src/H5Clog.c
parent920869796031ed4ee9c1fbea8aaccda3592a88b3 (diff)
downloadhdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.zip
hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.tar.gz
hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.tar.bz2
Convert hbool_t --> bool in src (#3496)
* hbool_t --> bool in src * Does not remove TRUE/FALSE * Public header files are unchanged * Public API calls are unchanged * TRUE/FALSE --> true/false in src * Add deprecation notice for hbool_t
Diffstat (limited to 'src/H5Clog.c')
-rw-r--r--src/H5Clog.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5Clog.c b/src/H5Clog.c
index dfbc699..255b28f 100644
--- a/src/H5Clog.c
+++ b/src/H5Clog.c
@@ -72,7 +72,7 @@
*-------------------------------------------------------------------------
*/
herr_t
-H5C_log_set_up(H5C_t *cache, const char log_location[], H5C_log_style_t style, hbool_t start_immediately)
+H5C_log_set_up(H5C_t *cache, const char log_location[], H5C_log_style_t style, bool start_immediately)
{
int mpi_rank = -1; /* -1 indicates serial (no MPI rank) */
herr_t ret_value = SUCCEED; /* Return value */
@@ -108,7 +108,7 @@ H5C_log_set_up(H5C_t *cache, const char log_location[], H5C_log_style_t style, h
HGOTO_ERROR(H5E_CACHE, H5E_LOGGING, FAIL, "unknown logging style");
/* Set logging flags */
- cache->log_info->enabled = TRUE;
+ cache->log_info->enabled = true;
/* Start logging if requested */
if (start_immediately)
@@ -140,7 +140,7 @@ H5C_log_tear_down(H5C_t *cache)
assert(cache);
/* Check logging flags */
- if (FALSE == cache->log_info->enabled)
+ if (false == cache->log_info->enabled)
HGOTO_ERROR(H5E_CACHE, H5E_LOGGING, FAIL, "logging not enabled");
/* Stop logging if that's going on */
@@ -154,7 +154,7 @@ H5C_log_tear_down(H5C_t *cache)
HGOTO_ERROR(H5E_CACHE, H5E_LOGGING, FAIL, "log-specific tear down call failed");
/* Unset logging flags */
- cache->log_info->enabled = FALSE;
+ cache->log_info->enabled = false;
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -180,7 +180,7 @@ H5C_start_logging(H5C_t *cache)
assert(cache);
/* Check logging flags */
- if (FALSE == cache->log_info->enabled)
+ if (false == cache->log_info->enabled)
HGOTO_ERROR(H5E_CACHE, H5E_LOGGING, FAIL, "logging not enabled");
/* Start logging */
@@ -189,7 +189,7 @@ H5C_start_logging(H5C_t *cache)
HGOTO_ERROR(H5E_CACHE, H5E_LOGGING, FAIL, "log-specific start call failed");
/* Set logging flags */
- cache->log_info->logging = TRUE;
+ cache->log_info->logging = true;
/* Write a log message */
if (cache->log_info->cls->write_start_log_msg)
@@ -220,9 +220,9 @@ H5C_stop_logging(H5C_t *cache)
assert(cache);
/* Check logging flags */
- if (FALSE == cache->log_info->enabled)
+ if (false == cache->log_info->enabled)
HGOTO_ERROR(H5E_CACHE, H5E_LOGGING, FAIL, "logging not enabled");
- if (FALSE == cache->log_info->logging)
+ if (false == cache->log_info->logging)
HGOTO_ERROR(H5E_CACHE, H5E_LOGGING, FAIL, "logging not in progress");
/* Write a log message */
@@ -236,7 +236,7 @@ H5C_stop_logging(H5C_t *cache)
HGOTO_ERROR(H5E_CACHE, H5E_LOGGING, FAIL, "log-specific stop call failed");
/* Set logging flags */
- cache->log_info->logging = FALSE;
+ cache->log_info->logging = false;
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -253,7 +253,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5C_get_logging_status(const H5C_t *cache, hbool_t *is_enabled, hbool_t *is_currently_logging)
+H5C_get_logging_status(const H5C_t *cache, bool *is_enabled, bool *is_currently_logging)
{
FUNC_ENTER_NOAPI_NOERR