summaryrefslogtreecommitdiffstats
path: root/src/H5system.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/H5system.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/H5system.c')
-rw-r--r--src/H5system.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5system.c b/src/H5system.c
index eb233bc..9e44e28 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -61,7 +61,7 @@
/*******************/
/* Track whether tzset routine was called */
-static hbool_t H5_ntzset = FALSE;
+static bool H5_ntzset = false;
#ifndef H5_HAVE_VASPRINTF
/* HDvasprintf provides vasprintf-like function on targets where it is
@@ -224,7 +224,7 @@ H5_make_time(struct tm *tm)
/* Initialize timezone information */
if (!H5_ntzset) {
HDtzset();
- H5_ntzset = TRUE;
+ H5_ntzset = true;
} /* end if */
/* Perform base conversion */
@@ -378,7 +378,7 @@ H5_get_win32_times(H5_timevals_t *tvs /*in,out*/)
FILETIME ExitTime;
LARGE_INTEGER counts_start;
static LARGE_INTEGER counts_freq;
- static hbool_t is_initialized = FALSE;
+ static bool is_initialized = false;
BOOL err;
assert(tvs);
@@ -389,7 +389,7 @@ H5_get_win32_times(H5_timevals_t *tvs /*in,out*/)
err = QueryPerformanceFrequency(&counts_freq);
if (0 == err)
return -1;
- is_initialized = TRUE;
+ is_initialized = true;
} /* end if */
/*************************
@@ -808,9 +808,9 @@ H5_nanosleep(uint64_t nanosec)
/* Windows can't sleep at a ns resolution. Best we can do is ~1 ms. We
* don't care about the return value since the second parameter
- * (bAlertable) is FALSE, so it will always be zero.
+ * (bAlertable) is false, so it will always be zero.
*/
- ignore = SleepEx(dwMilliseconds, FALSE);
+ ignore = SleepEx(dwMilliseconds, false);
#else