diff options
| author | Simon Tatham <anakin@pobox.com> | 2009-12-27 10:01:18 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2009-12-27 10:01:18 +0000 |
| commit | 3c3368d07facee6011cd694f0afac9b1bb4c3f73 (patch) | |
| tree | 134e79bf17fa9211933a8223d1fe145ac9178c0a | |
| parent | 9fbb365684ef662fc183ebd45c2eeb50f40589b5 (diff) | |
| download | puzzles-3c3368d07facee6011cd694f0afac9b1bb4c3f73.zip puzzles-3c3368d07facee6011cd694f0afac9b1bb4c3f73.tar.gz puzzles-3c3368d07facee6011cd694f0afac9b1bb4c3f73.tar.bz2 puzzles-3c3368d07facee6011cd694f0afac9b1bb4c3f73.tar.xz | |
I've never trusted common variables. Take those bare ints out of
latin.h and put them in latin.c with 'extern' declarations in the
header.
[originally from svn r8794]
| -rw-r--r-- | latin.c | 4 | ||||
| -rw-r--r-- | latin.h | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -16,6 +16,10 @@ * Solver. */ +#ifdef STANDALONE_SOLVER +int solver_show_working, solver_recurse_depth; +#endif + /* * Function called when we are certain that a particular square has * a particular number in it. The y-coordinate passed in here is @@ -8,7 +8,7 @@ typedef unsigned char digit; /* --- Solver structures, definitions --- */ #ifdef STANDALONE_SOLVER -int solver_show_working, solver_recurse_depth; +extern int solver_show_working, solver_recurse_depth; #endif struct latin_solver { |