]> granicus.if.org Git - graphviz/commitdiff
API BREAK: remove now-unused 'boolean' type
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 Jan 2022 00:43:17 +0000 (16:43 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 Jan 2022 17:48:40 +0000 (09:48 -0800)
CHANGELOG.md
lib/common/types.h
lib/sparse/general.h

index fb9e8b47c6ba17d15d7a61d784e55238223485ec..63841cb7b8b703de29311ff24859be60dea1b25a 100644 (file)
@@ -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`.
index 4e406858de7fc7a9dbf1af6b2b00aee8336299e1..dabe0c6eb7f552bb60c6013ecd8f235b14223f81 100644 (file)
@@ -18,7 +18,6 @@
 #include <assert.h>
 #include <signal.h>
 
-typedef unsigned char boolean;
 #ifndef FALSE
 #define FALSE 0
 #endif
index 9990a4c94cf5e83c75442f47807e473969b0d401..f2b0d3fdd9e38301c0e9320deac77809481569d1 100644 (file)
@@ -59,7 +59,6 @@ extern "C" {
 
 #define POINTS(inch) 72*(inch)
 
-typedef unsigned int boolean;
 #ifdef GVDLL
 __declspec(dllimport) extern unsigned char Verbose;
 #else