static void dolookups(struct glyph const *);
-static int
+static bool
getpix(char const data[YSIZE], int x, int y, unsigned flags)
{
static vec const zero = { 0, 0 };
-static int
+static bool
vec_eqp(vec v1, vec v2)
{
return v1.x == v2.x && v1.y == v2.y;
}
/* Are a, b, and c distinct collinear points in that order? */
-static int
+static bool
vec_inline3(vec a, vec b, vec c)
{
return
}
/* Are a, b, c, and d distinct collinear points in that order? */
-static int
+static bool
vec_inline4(vec a, vec b, vec c, vec d)
{
return vec_inline3(a, b, c) && vec_inline3(b, c, d);
killpoint(p);
}
-static int done_anything;
+static bool done_anything;
static void
fix_edges(point *a0, point *b0)
fix_isolated(b0);
fix_identical(b0);
fix_collinear(a1);
- done_anything = 1;
+ done_anything = true;
}
}
int i, j;
do {
- done_anything = 0;
+ done_anything = false;
for (i = 0; i < nextpoint; i++)
for (j = i+1; points[i].next && j < nextpoint; j++)
if (points[j].next)
}
static void
-blackpixel(int x, int y, int bl, int br, int tr, int tl)
+blackpixel(int x, int y, bool bl, bool br, bool tr, bool tl)
{
x *= XPIX_S; y *= YPIX_S;
}
static void
-whitepixel(int x, int y, int bl, int br, int tr, int tl)
+whitepixel(int x, int y, bool bl, bool br, bool tr, bool tl)
{
x *= XPIX_S; y *= YPIX_S;