]> granicus.if.org Git - graphviz/commitdiff
API BREAK: use a C99 bool for 'usershape_t.nocache'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Jan 2022 23:39:39 +0000 (15:39 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 Jan 2022 17:46:33 +0000 (09:46 -0800)
CHANGELOG.md
lib/common/usershape.h
lib/gvc/gvusershape.c

index 774e909cdb13c0c3c84a2f329b0c5025bfaf0a0e..4d39bae9df749e241c4ab01f552dc7fa49a0e0d1 100644 (file)
@@ -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
index 9a36676ae04318439b13ad9f5d9a921b8575c76e..853708094034af5f57f6a9ff0e1a5b18ec5a10bb 100644 (file)
@@ -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;
index 3a28db8bdcc181874ffd85609b4a15dd1aa31b6f..ee06dd6d1ac1b2438125c570570e801d2b641828 100644 (file)
@@ -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++;
     }