From: Ben Harris Date: Tue, 8 Aug 2017 21:26:58 +0000 (+0100) Subject: It's the future: C has a boolean type. X-Git-Tag: bedstead-002.000~75 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=82d22a52894b75113b0dc5f938eea467ab37343a;p=bedstead.git It's the future: C has a boolean type. --- diff --git a/bedstead.c b/bedstead.c index f34f14d..47b9469 100644 --- a/bedstead.c +++ b/bedstead.c @@ -1978,14 +1978,15 @@ emit_contour(point *p0) static void emit_path() { - int i, started = 0; + int i; point *p, *p1; + bool started = false; for (i = 0; i < nextpoint; i++) { p = &points[i]; if (p->next) { if (!started) printf("Fore\nSplineSet\n"); - started = 1; + started = true; emit_contour(p); } }