- **Breaking**: The `insidefn` member of the `shape_functions` struct must now
be a pointer to a function returning a C99 `bool` instead of a
Graphviz-specific `boolean`.
-- **Breaking**: The `splineMerge` member of the `splineInfo` struct must now be
- a pointer to a function returning a C99 `bool` instead of a Graphviz-specific
- `boolean`.
+- **Breaking**: The `swapEnds` and `splineMerge` members of the `splineInfo`
+ struct must now be pointers to functions returning a C99 `bool`s instead of
+ Graphviz-specific `boolean`s.
- **Breaking**: Graphviz headers no longer define the constant `MAXSHORT`. A
drop-in replacement is `SHRT_MAX` in the C standard library’s limits.h.
- **Breaking**: Graphviz headers no lnger define `NIL` macros. A drop-in
bezier * spl, splineInfo * info)
{
edge_t *e;
- int i, j, sflag, eflag;
+ int i, sflag, eflag;
+ bool j;
for (e = fe; ED_to_orig(e); e = ED_to_orig(e));
if (info->ignoreSwap)
- j = 0;
+ j = false;
else
j = info->swapEnds(e);
arrow_flags(e, &sflag, &eflag);
} port;
typedef struct {
- boolean(*swapEnds) (edge_t * e); /* Should head and tail be swapped? */
+ bool(*swapEnds) (edge_t * e); /* Should head and tail be swapped? */
bool(*splineMerge) (node_t * n); /* Is n a node in the middle of an edge? */
boolean ignoreSwap; /* Test for swapped edges if false */
boolean isOrtho; /* Orthogonal routing used */
&& (ND_in(n).size > 1 || ND_out(n).size > 1);
}
-static boolean swap_ends_p(edge_t * e)
+static bool swap_ends_p(edge_t * e)
{
while (ED_to_orig(e))
e = ED_to_orig(e);
if (ND_rank(aghead(e)) > ND_rank(agtail(e)))
- return FALSE;
+ return false;
if (ND_rank(aghead(e)) < ND_rank(agtail(e)))
- return TRUE;
+ return true;
if (ND_order(aghead(e)) >= ND_order(agtail(e)))
- return FALSE;
- return TRUE;
+ return false;
+ return true;
}
static splineInfo sinfo = {.swapEnds = swap_ends_p,
return false;
}
-static boolean swap_ends_p(edge_t * e)
+static bool swap_ends_p(edge_t * e)
{
(void)e;
- return FALSE;
+ return false;
}
static splineInfo sinfo = {.swapEnds = swap_ends_p,
return false;
}
-static boolean swap_ends_p(edge_t * e)
+static bool swap_ends_p(edge_t * e)
{
(void)e;
- return FALSE;
+ return false;
}
static splineInfo sinfo = {.swapEnds = swap_ends_p,
return false;
}
-static boolean swap_ends_p(edge_t * e)
+static bool swap_ends_p(edge_t * e)
{
(void)e;
- return FALSE;
+ return false;
}
static splineInfo sinfo = { swap_ends_p, spline_merge, 1, 1 };