]> granicus.if.org Git - graphviz/commitdiff
gvpr validTVT: return a more appropriate type
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 3 Aug 2022 01:01:57 +0000 (18:01 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Aug 2022 00:03:40 +0000 (17:03 -0700)
lib/gvpr/gprstate.c
lib/gvpr/gprstate.h

index 2dcb0cde108b91abbc68600ac6ee2c8b4fa573e3..0b0b0384cdd9f04080562c28a4d56e2dabf5052a 100644 (file)
 #include <gvpr/gprstate.h>
 #include <ast/error.h>
 #include <ast/sfstr.h>
+#include <stdbool.h>
 
 static int name_used;
 
-int validTVT(long long c) {
+bool validTVT(long long c) {
     return ((TV_flat <= c) && (c <= TV_prepostrev));
 }
 
index 30417ea8369376acf6985084852ad1b31001ad4f..a26d2d403212412d8392d05174d761f72e67dfcf 100644 (file)
@@ -17,6 +17,7 @@ extern "C" {
 #include <sfio/sfio.h>
 #include "cgraph.h"
 #include <ast/ast.h>
+#include <stdbool.h>
 #include <vmalloc/vmalloc.h>
 #include <expr/expr.h>
 #include "gvpr.h"
@@ -76,7 +77,7 @@ extern "C" {
     extern gvprbinding* findBinding(Gpr_t* state, char*);
     extern void closeGPRState(Gpr_t* state);
     extern void initGPRState(Gpr_t *, Vmalloc_t *);
-    extern int validTVT(long long);
+    extern bool validTVT(long long);
 
 #ifdef __cplusplus
 }