chiark / gitweb /
Adopt C99 bool in the grid.c API.
authorSimon Tatham <anakin@pobox.com>
Tue, 13 Nov 2018 21:43:11 +0000 (21:43 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 13 Nov 2018 21:48:24 +0000 (21:48 +0000)
More or less trivially: the only affected declaration is the
has_incentre flag in struct grid_face.

grid.h

diff --git a/grid.h b/grid.h
index 26d0b166333092ff9859f1297187e127a4e613e1..7ca3ff1d5fe1b0904e537c1196172867b82f87cd 100644 (file)
--- a/grid.h
+++ b/grid.h
@@ -50,7 +50,7 @@ struct grid_face {
    * grid_find_incentre() on a face, and it will fill in ix,iy below
    * and set has_incentre to indicate that it's done so.
    */
-  int has_incentre;
+  bool has_incentre;
   int ix, iy;      /* incentre (centre of largest inscribed circle) */
 };
 struct grid_edge {