This leads to more readable and obvious code.
#include <string.h>
#include <assert.h>
+#include <stdbool.h>
#include <stdio.h>
#include <math.h>
#include <common/geom.h>
*yval = *v1;
}
-static int _greater_than_equal_to (pointf *v0, pointf *v1)
+static bool _greater_than_equal_to (pointf *v0, pointf *v1)
{
if (v0->y > v1->y + C_EPS)
return TRUE;
return v0->x >= v1->x;
}
-static int _less_than (pointf *v0, pointf *v1)
+static bool _less_than (pointf *v0, pointf *v1)
{
return !_greater_than_equal_to(v0, v1);
}