mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 15:41:30 -07:00
Remove size parameter from dsf init and copy functions.
Now that the dsf knows its own size internally, there's no need to tell it again when one is copied or reinitialised. This makes dsf_init much more about *re*initialising a dsf, since now dsfs are always allocated using a function that will initialise them anyway. So I think it deserves a rename.
This commit is contained in:
4
slant.c
4
slant.c
@ -472,13 +472,13 @@ static int slant_solve(int w, int h, const signed char *clues,
|
||||
* Establish a disjoint set forest for tracking connectedness
|
||||
* between grid points.
|
||||
*/
|
||||
dsf_init(sc->connected, W*H);
|
||||
dsf_reinit(sc->connected);
|
||||
|
||||
/*
|
||||
* Establish a disjoint set forest for tracking which squares
|
||||
* are known to slant in the same direction.
|
||||
*/
|
||||
dsf_init(sc->equiv, w*h);
|
||||
dsf_reinit(sc->equiv);
|
||||
|
||||
/*
|
||||
* Clear the slashval array.
|
||||
|
Reference in New Issue
Block a user