From 51574aebd93f8e6524bcbb38a370a14df9ddf568 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Jan 2022 16:43:17 -0800 Subject: [PATCH] API BREAK: remove now-unused 'boolean' type --- CHANGELOG.md | 2 ++ lib/common/types.h | 1 - lib/sparse/general.h | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb9e8b47c..63841cb7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **Breaking**: Using Graphviz as a library on Windows now requires the `GVDLL` symbol to be set to ensure correct linking. +- **Breaking**: Graphviz headers no longer define the `boolean` type. A + replacement is C99 `bool` in the C standard library’s stdbool.h. - **Breaking**: The `insidefn` member of the `shape_functions` struct must now be a pointer to a function returning a C99 `bool` instead of a Graphviz-specific `boolean`. diff --git a/lib/common/types.h b/lib/common/types.h index 4e406858d..dabe0c6eb 100644 --- a/lib/common/types.h +++ b/lib/common/types.h @@ -18,7 +18,6 @@ #include #include -typedef unsigned char boolean; #ifndef FALSE #define FALSE 0 #endif diff --git a/lib/sparse/general.h b/lib/sparse/general.h index 9990a4c94..f2b0d3fdd 100644 --- a/lib/sparse/general.h +++ b/lib/sparse/general.h @@ -59,7 +59,6 @@ extern "C" { #define POINTS(inch) 72*(inch) -typedef unsigned int boolean; #ifdef GVDLL __declspec(dllimport) extern unsigned char Verbose; #else -- 2.40.0