#include <math.h>
#include <common/render.h>
#include <cgraph/unreachable.h>
+#include <stdbool.h>
#ifdef DEBUG
static int debugleveln(edge_t* e, int i)
{
pointf seg[4], best[4], pt, opt, *left, *right;
double low, high, t, *idir, *odir;
- boolean found;
+ bool found;
int i;
if (left_inside) {
idir = &high;
odir = &low;
}
- found = FALSE;
+ found = false;
low = 0.0;
high = 1.0;
do {
} else {
for (i = 0; i < 4; i++)
best[i] = seg[i];
- found = TRUE;
+ found = true;
*odir = t;
}
} while (fabs(opt.x - pt.x) > .5 || fabs(opt.y - pt.y) > .5);