#include "render.h"
#include "htmltable.h"
-#ifdef WITH_CGRAPH
-#define SET_RANKDIR(g,rd) (GD_rankdir2(g) = rd)
-#else
-#define SET_RANKDIR(g,rd) ((g)->u.rankdir = (rd))
-#endif
-
static char *usageFmt =
"Usage: %s [-Vv?] [-(GNE)name=val] [-(KTlso)<val>] <dot files>\n";
#ifdef WITH_CGRAPH
if (sg == agroot(sg))
#else
- if (sg == sg->root) {
+ if (sg == sg->root)
#endif
return;
#define SET_CLUST_EDGE(g) (GD_flags(g) |= 1)
#define EDGE_TYPE(g) (GD_flags(g) & (7 << 1))
+#ifdef WITH_CGRAPH
+#define SET_RANKDIR(g,rd) (GD_rankdir2(g) = rd)
+#else
+#define SET_RANKDIR(g,rd) ((g)->u.rankdir = (rd))
+#endif
+
#ifndef streq
#define streq(a,b) (*(a)==*(b)&&!strcmp(a,b))
#endif
#include "gvcext.h"
#include "pathgeom.h"
#include "textpara.h"
-#ifdef WITH_CGRAPH
-#include "cgraph.h"
-#else
-#include "graph.h"
-#endif
#ifdef __cplusplus
extern "C" {
#define ED_tree_index(e) (e)->u.tree_index
#define ED_weight(e) (e)->u.weight
#define ED_xpenalty(e) (e)->u.xpenalty
+#endif
+
+#ifdef WITH_CGRAPH
+#include "cgraph.h"
+#else
+#include "graph.h"
#endif
typedef struct {