diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-05 21:52:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 21:52:30 (GMT) |
commit | 8253ab9ebf6a082dc07eb931f27b169d6a45d577 (patch) | |
tree | 47630856491e54f5d28e1608ffa5e2f976dc9c95 /src/H5RS.c | |
parent | 920869796031ed4ee9c1fbea8aaccda3592a88b3 (diff) | |
download | hdf5-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/H5RS.c')
-rw-r--r-- | src/H5RS.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -49,7 +49,7 @@ struct H5RS_str_t { char *end; /* Pointer to terminating NUL character at the end of the string */ size_t len; /* Current length of the string */ size_t max; /* Size of allocated buffer */ - hbool_t wrapped; /* Indicates that the string to be ref-counted is not copied */ + bool wrapped; /* Indicates that the string to be ref-counted is not copied */ unsigned n; /* Reference count of number of pointers sharing string */ }; @@ -191,7 +191,7 @@ H5RS__prepare_for_append(H5RS_str_t *rs) if (rs->wrapped) { if (H5RS__xstrdup(rs, rs->s) < 0) HGOTO_ERROR(H5E_RS, H5E_CANTCOPY, FAIL, "can't copy string"); - rs->wrapped = FALSE; + rs->wrapped = false; } /* end if */ } /* end else */ @@ -316,7 +316,7 @@ H5RS_wrap(const char *s) * * We ignore warnings about storing a const char pointer in the struct * since we never modify or free the string when the wrapped struct - * field is set to TRUE. + * field is set to true. */ H5_GCC_CLANG_DIAG_OFF("cast-qual") ret_value->s = (char *)s; @@ -325,7 +325,7 @@ H5RS_wrap(const char *s) ret_value->len = HDstrlen(s); ret_value->end = ret_value->s + ret_value->len; - ret_value->wrapped = TRUE; + ret_value->wrapped = true; ret_value->max = 0; /* Wrapped, not allocated */ ret_value->n = 1; @@ -602,7 +602,7 @@ H5RS_incr(H5RS_str_t *rs) if (rs->wrapped) { if (H5RS__xstrdup(rs, rs->s) < 0) HGOTO_ERROR(H5E_RS, H5E_CANTCOPY, FAIL, "can't copy string"); - rs->wrapped = FALSE; + rs->wrapped = false; } /* end if */ /* Increment reference count for string */ |