From: Matthew Fernandez Date: Sat, 15 Jan 2022 23:39:39 +0000 (-0800) Subject: API BREAK: use a C99 bool for 'usershape_t.nocache' X-Git-Tag: 3.0.0~64^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15292290903934ec5e227d8c6670b034d7606d2e;p=graphviz API BREAK: use a C99 bool for 'usershape_t.nocache' --- 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++; }