} pair_t;
static int margin = 8; /* Default margin in packing */
-static bool doSplines = TRUE; /* Use edges in packing */
+static boolean doSplines = TRUE; /* Use edges in packing */
static pack_mode packMode = l_clust; /* Default packing mode - use clusters */
static int verbose = 0;
static char **myFiles = 0;
* libcommon. If fill is true, we use init_nop (neato -n) to
* read in attributes relevant to the layout.
*/
-static void init_graph(Agraph_t * g, bool fill)
+static void init_graph(Agraph_t * g, boolean fill)
{
int d;
Dt_t *nnames; /* dict of used node names */
Agsym_t *G_bb;
Agsym_t *rv;
- bool doWarn = TRUE;
+ boolean doWarn = TRUE;
if (verbose)
fprintf(stderr, "Creating clone graph\n");
#define CDT_VERSION 19991101L
+#define Void_t void
+#define _ARG_(x) x
+#ifndef NIL
+#define NIL(type) ((type)0)
+#endif
+
+#include <stdlib.h>
+
#if _PACKAGE_ast
# include <ast_std.h>
-#else
+#elif _BLD_cdt
# include "ast_common.h"
#endif
#define DT_DISC 3 /* discipline is about to be changed */
#define DT_METH 4 /* method is about to be changed */
- _BEGIN_EXTERNS_ /* public data */
#if _BLD_cdt && defined(__EXPORT__)
#define extern __EXPORT__
#endif
#endif
#undef extern
- _END_EXTERNS_ _BEGIN_EXTERNS_ /* public functions */
#if _BLD_cdt && defined(__EXPORT__)
#define extern __EXPORT__
#endif
extern unsigned int dtstrhash _ARG_((unsigned int, Void_t *, int));
#undef extern
- _END_EXTERNS_
+
#define _DT_(d) ((Dt_t*)(d))
#define dtvnext(d) (_DT_(d)->view)
#define dtvcount(d) (_DT_(d)->nview)