aboutsummaryrefslogtreecommitdiff
path: root/dominosa.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-04-20 14:06:43 +0100
committerSimon Tatham <anakin@pobox.com>2023-04-20 17:23:21 +0100
commit89c438e149a91fffa74b2669f7e0cd05abc3420f (patch)
treea307d0c2dde7c2868e32a840497d44051d9b4630 /dominosa.c
parent7abf85a9c6b460698994d9cfa538b7b26fed5e87 (diff)
downloadpuzzles-89c438e149a91fffa74b2669f7e0cd05abc3420f.zip
puzzles-89c438e149a91fffa74b2669f7e0cd05abc3420f.tar.gz
puzzles-89c438e149a91fffa74b2669f7e0cd05abc3420f.tar.bz2
puzzles-89c438e149a91fffa74b2669f7e0cd05abc3420f.tar.xz
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.
Diffstat (limited to 'dominosa.c')
-rw-r--r--dominosa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dominosa.c b/dominosa.c
index 8835bbb..8b3c83e 100644
--- a/dominosa.c
+++ b/dominosa.c
@@ -350,7 +350,8 @@ struct solver_scratch {
struct solver_square **squares_by_number;
struct findloopstate *fls;
bool squares_by_number_initialised;
- int *wh_scratch, *pc_scratch, *pc_scratch2, *dc_scratch, *dsf_scratch;
+ int *wh_scratch, *pc_scratch, *pc_scratch2, *dc_scratch;
+ DSF *dsf_scratch;
};
static struct solver_scratch *solver_make_scratch(int n)