]> granicus.if.org Git - graphviz/commitdiff
use a stronger return type for PQempty
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Apr 2021 05:07:57 +0000 (22:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Apr 2021 20:31:57 +0000 (13:31 -0700)
lib/neatogen/heap.c
lib/neatogen/heap.h

index 88d0552230a8eee83c519fded9d978fbd8fbe68c..0ad0b998e2bc78c9d17169583ee324847d26f77d 100644 (file)
@@ -10,6 +10,7 @@
 
 
 #include <common/render.h>
+#include <stdbool.h>
 #include <stdio.h>
 
 #include <neatogen/mem.h>
@@ -74,7 +75,7 @@ void PQdelete(Halfedge * he)
 }
 
 
-int PQempty(void)
+bool PQempty(void)
 {
     return PQcount == 0;
 }
index adac235d1c576bfa53e3b5955c7b226e1fd3f647..8c53505304236151f0cba6792dc84c651496b0bb 100644 (file)
@@ -15,12 +15,13 @@ extern "C" {
 #endif
 
 #include <neatogen/hedges.h>
+#include <stdbool.h>
 
     extern void PQinitialize(void);
     extern void PQcleanup(void);
     extern Halfedge *PQextractmin(void);
     extern Point PQ_min(void);
-    extern int PQempty(void);
+    extern bool PQempty(void);
     extern void PQdelete(Halfedge *);
     extern void PQinsert(Halfedge *, Site *, double);