From 15292290903934ec5e227d8c6670b034d7606d2e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Jan 2022 15:39:39 -0800 Subject: [PATCH] API BREAK: use a C99 bool for 'usershape_t.nocache' --- CHANGELOG.md | 4 ++-- lib/common/usershape.h | 2 +- lib/gvc/gvusershape.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 774e909cd..4d39bae9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,8 +35,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 struct are now C99 `bool`s instead of Graphviz-specific `boolean`s. - **Breaking**: The `conc_opp_flag` field of the `Agedgeinfo_t` struct is now a C99 `bool` instead of a Graphviz-specific `boolean`. -- **Breaking**: The `must_inline` field of the `usershape_t` struct is now a C99 - `bool` instead of a Graphviz-specific `boolean`. +- **Breaking**: The `must_inline` and `nocache` fields of the `usershape_t` + struct are now C99 `bool`s instead of Graphviz-specific `boolean`s. - **Breaking**: 1-bit fields of the `obj_state_s` struct are now unsigned instead of signed. - **Breaking**: Graphviz headers no longer define the constant `MAXSHORT`. A diff --git a/lib/common/usershape.h b/lib/common/usershape.h index 9a36676ae..853708094 100644 --- a/lib/common/usershape.h +++ b/lib/common/usershape.h @@ -50,7 +50,7 @@ extern "C" { const char *name; int macro_id; bool must_inline; - boolean nocache; + bool nocache; FILE *f; imagetype_t type; char *stringtype; diff --git a/lib/gvc/gvusershape.c b/lib/gvc/gvusershape.c index 3a28db8bd..ee06dd6d1 100644 --- a/lib/gvc/gvusershape.c +++ b/lib/gvc/gvusershape.c @@ -608,7 +608,7 @@ boolean gvusershape_file_access(usershape_t *us) return FALSE; } if (usershape_files_open_cnt >= MAX_USERSHAPE_FILES_OPEN) - us->nocache = TRUE; + us->nocache = true; else usershape_files_open_cnt++; } -- 2.40.0