chiark
/
gitweb
/
~bjharris
/
bedstead.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc10355
)
It's the future: C has a boolean type.
author
Ben Harris
<bjh21@bjh21.me.uk>
Tue, 8 Aug 2017 21:26:58 +0000
(22:26 +0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Tue, 8 Aug 2017 21:26:58 +0000
(22:26 +0100)
bedstead.c
patch
|
blob
|
history
diff --git
a/bedstead.c
b/bedstead.c
index f34f14dd8ea0fa3e8c98caeecd36afcca6275f23..47b94694baf5e5575a05bc92e69e1c01ae05113a 100644
(file)
--- 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);
}
}