# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
+if WITH_CGRAPH
+GRAPH = cgraph
+else
+GRAPH = graph
+endif
+
AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/gvc \
- -I$(top_srcdir)/lib/pathplan \
-I$(top_srcdir)/lib/common \
- -I$(top_srcdir)/lib/graph \
+ -I$(top_srcdir)/lib/$(GRAPH) \
-I$(top_srcdir)/lib/cdt
noinst_HEADERS = xlabels.h index.h node.h rectangle.h split.q.h
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "index.h"
#include <stdio.h>
#include <assert.h>
#include "logic.h"
#include "arith.h"
#include "rectangle.h"
+#ifdef WITH_CGRAPH
+#include <cgraph.h>
+#else
+#include <graph.h>
+#endif
#define Undefined(x) ((x)->boundary[0] > (x)->boundary[NUMDIMS])
/*-----------------------------------------------------------------------------
| Calculate the n-dimensional area of a rectangle
-----------------------------------------------------------------------------*/
-void agerror(char *);
#if SIZEOF_LONG_LONG > SIZEOF_INT
unsigned int RectArea(Rect_t * r)
for (i = 0; i < NUMDIMS; i++) {
long long a_test = area * r->boundary[i + NUMDIMS] - r->boundary[i];
if( a_test > UINT_MAX) {
- agerror("label: area too large for rtree\n");
+ agerr (AGERR, "label: area too large for rtree\n");
return UINT_MAX;
}
area = a_test;
unsigned int b = r->boundary[i + NUMDIMS] - r->boundary[i];
a *= b;
if( (a / b ) != area) {
- agerror("label: area too large for rtree\n");
+ agerr (AGERR, "label: area too large for rtree\n");
return UINT_MAX;
}
area = a;