`putstr` by `printf` has been reverted
- graphviz-4.0.0: build error: cmd/tools/gvcolor.c:159: undefined reference to
`fmax` #2246
+- Failed assertion in `chkSgraph` for twopi layout and ortho splines. #14
## [4.0.0] – 2022-05-29
#include <stddef.h>
#include <ortho/maze.h>
#include <ortho/partition.h>
+#include <ortho/trap.h>
#include <common/memory.h>
#include <common/arith.h>
{
(void)d;
(void)disc;
- if (key1->x > key2->x) return 1;
- else if (key1->x < key2->x) return -1;
- else if (key1->y > key2->y) return 1;
- else if (key1->y < key2->y) return -1;
- else return 0;
-}
+ int dx = dfp_cmp(key1->x, key2->x);
+ if (dx != 0)
+ return dx;
+ return dfp_cmp(key1->y, key2->y);
+}
/// compares points by Y and then by X
{
(void)d;
(void)disc;
- if (key1->y > key2->y) return 1;
- else if (key1->y < key2->y) return -1;
- else if (key1->x > key2->x) return 1;
- else if (key1->x < key2->x) return -1;
- else return 0;
-}
+ int dy = dfp_cmp(key1->y, key2->y);
+ if (dy != 0)
+ return dy;
+ return dfp_cmp(key1->x, key2->x);
+}
typedef struct {
snode* np;
# FIXME: re-enable when all tests pass on all platforms
# assert result.returncode == 0
-@pytest.mark.xfail(strict=not is_ndebug_defined()) # FIXME
+@pytest.mark.xfail(platform.system() == "Windows",
+ reason="#56",
+ strict=not is_ndebug_defined()) # FIXME
def test_14():
"""
using ortho and twopi in combination should not cause an assertion failure