chiark / gitweb /
It's the future: C has a boolean type.
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 8 Aug 2017 21:26:58 +0000 (22:26 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 8 Aug 2017 21:26:58 +0000 (22:26 +0100)
bedstead.c

index f34f14dd8ea0fa3e8c98caeecd36afcca6275f23..47b94694baf5e5575a05bc92e69e1c01ae05113a 100644 (file)
@@ -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);
                }
        }