From 89c438e149a91fffa74b2669f7e0cd05abc3420f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 20 Apr 2023 14:06:43 +0100 Subject: Declare all dsfs as a dedicated type name 'DSF'. In this commit, 'DSF' is simply a typedef for 'int', so that the new declaration form 'DSF *' translates to the same type 'int *' that dsfs have always had. So all we're doing here is mechanically changing type declarations throughout the code. --- signpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'signpost.c') diff --git a/signpost.c b/signpost.c index 14f60ec..7374db8 100644 --- a/signpost.c +++ b/signpost.c @@ -62,7 +62,7 @@ struct game_state { int *nums; /* numbers, size n */ unsigned int *flags; /* flags, size n */ int *next, *prev; /* links to other cell indexes, size n (-1 absent) */ - int *dsf; /* connects regions with a dsf. */ + DSF *dsf; /* connects regions with a dsf. */ int *numsi; /* for each number, which index is it in? (-1 absent) */ }; -- cgit v1.1