mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 00:15:46 -07:00
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.
This commit is contained in:
@ -189,7 +189,7 @@ struct solver_scratch {
|
||||
/*
|
||||
* Tracks connectedness between squares.
|
||||
*/
|
||||
int *dsf;
|
||||
DSF *dsf;
|
||||
|
||||
/*
|
||||
* size[dsf_canonify(dsf, yx)] tracks the size of the
|
||||
@ -514,7 +514,7 @@ static unsigned char *generate(int w, int h, int k, random_state *rs)
|
||||
gen_lock = snewn(wh, bool);
|
||||
|
||||
do {
|
||||
int *dsf = divvy_rectangle(w, h, k, rs);
|
||||
DSF *dsf = divvy_rectangle(w, h, k, rs);
|
||||
|
||||
/*
|
||||
* Go through the dsf and find the indices of all the
|
||||
|
Reference in New Issue
Block a user