after return) to the callee (just before). Might print something
useful in the soak-test context (where that debug statement will now
be printed and previously wasn't), but the main aim is to remove the
variable 'ngen' at the main call site, which triggered a set-but-not-
used warning if the debug statement that printed it was compiled out.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9392
cda61777-01e9-0310-a592-
d414129be87e
+ debug(("%d %dx%d loops before finished puzzle.\n", ngen, w, h));
+
{
char *grid, *clues;
char *desc;
{
char *grid, *clues;
char *desc;
- int ngen, w = params->w, h = params->h, i, j;
+ int w = params->w, h = params->h, i, j;
grid = snewn(w*h, char);
clues = snewn(w*h, char);
grid = snewn(w*h, char);
clues = snewn(w*h, char);
- ngen = new_clues(params, rs, clues, grid);
-
- debug(("%d %dx%d loops before finished puzzle.\n", ngen, w, h));
+ new_clues(params, rs, clues, grid);
desc = snewn(w * h + 1, char);
for (i = j = 0; i < w*h; i++) {
desc = snewn(w * h + 1, char);
for (i = j = 0; i < w*h; i++) {