diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-04-20 14:06:43 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-04-20 17:23:21 +0100 |
| commit | 89c438e149a91fffa74b2669f7e0cd05abc3420f (patch) | |
| tree | a307d0c2dde7c2868e32a840497d44051d9b4630 /singles.c | |
| parent | 7abf85a9c6b460698994d9cfa538b7b26fed5e87 (diff) | |
| download | puzzles-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 'singles.c')
| -rw-r--r-- | singles.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -421,7 +421,7 @@ static void debug_state(const char *desc, game_state *state) { sfree(dbg); } -static void connect_if_same(game_state *state, int *dsf, int i1, int i2) +static void connect_if_same(game_state *state, DSF *dsf, int i1, int i2) { int c1, c2; @@ -433,7 +433,7 @@ static void connect_if_same(game_state *state, int *dsf, int i1, int i2) dsf_merge(dsf, c1, c2); } -static void connect_dsf(game_state *state, int *dsf) +static void connect_dsf(game_state *state, DSF *dsf) { int x, y, i; @@ -498,7 +498,7 @@ static int check_rowcol(game_state *state, int starti, int di, int sz, unsigned static bool check_complete(game_state *state, unsigned flags) { - int *dsf = snew_dsf(state->n); + DSF *dsf = snew_dsf(state->n); int x, y, i, error = 0, nwhite, w = state->w, h = state->h; if (flags & CC_MARK_ERRORS) { |