]> granicus.if.org Git - graphviz/commitdiff
Remove usage of HAVE_AST define
authorErwin Janssen <erwinjanssen@outlook.com>
Wed, 21 Sep 2016 22:02:44 +0000 (00:02 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Tue, 4 Oct 2016 14:06:46 +0000 (16:06 +0200)
This define is never set, because there are no checks for the ast library. The checks using this define will never succeed, so they can be removed.

lib/cgraph/cghdr.h
lib/cgraph/mem.c
tclpkg/tclpathplan/tclpathplan.c

index 8a706cb435b9a5d76c0432905d73fb82dbcdadaa..ab1195a920fea84432dd6fb30d9e2d3f3e2dd69e 100644 (file)
 
 #include               <ctype.h>
 
-#ifdef HAVE_AST
-#include               <ast.h>
-#include               <vmalloc.h>
-#else
 #ifdef HAVE_VMALLOC
 #include               <vmalloc.h>
 #endif                         /* HAVE_VMALLOC */
@@ -39,7 +35,6 @@
 #ifdef HAVE_UNISTD_H
 #include       <unistd.h>
 #endif                         /* HAVE_UNISTD_H */
-#endif                         /* HAVE_AST */
 #ifdef DEBUG
 #include <assert.h>
 #else
index 2c5544e78f0b286f66ecb5b8a4005eea905e1454..16f2a92a8806757dc5688c4be0e165251dfdf503 100644 (file)
@@ -15,7 +15,7 @@
 
 /* memory management discipline and entry points */
 
-#if defined(HAVE_AST) || defined(HAVE_VMALLOC)
+#if defined(HAVE_VMALLOC)
 
        /* vmalloc based allocator */
 static void *memopen(void)
index a193cd875d4b6945cc24b8da1c673fd322e6e4a7..b811700279f69f14d51dea761ec38abe7de89a25 100644 (file)
 /* for sincos */
 #define _GNU_SOURCE 1
 
-#ifdef HAVE_AST
-#include                <ast.h>
-#include                <vmalloc.h>
-#else
 #include                <sys/types.h>
 #include                <stdlib.h>
 #include                <string.h>
 #include                <unistd.h>
-#endif
 
 #include <inttypes.h>
 #include <assert.h>