shithub: puzzles

Download patch

ref: 064da876828ea3079d5d7be5849b693f4d55364b
parent: 08915945e64d2d3dfea7ec426228f814a6e65adf
author: Simon Tatham <anakin@pobox.com>
date: Tue Nov 13 16:43:11 EST 2018

Adopt C99 bool in the grid.c API.

More or less trivially: the only affected declaration is the
has_incentre flag in struct grid_face.

--- a/grid.h
+++ b/grid.h
@@ -50,7 +50,7 @@
    * 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 {