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]
This commit is contained in:
Simon Tatham
2009-12-27 10:01:18 +00:00
parent 9fbb365684
commit 3c3368d07f
2 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,10 @@
* Solver. * Solver.
*/ */
#ifdef STANDALONE_SOLVER
int solver_show_working, solver_recurse_depth;
#endif
/* /*
* Function called when we are certain that a particular square has * Function called when we are certain that a particular square has
* a particular number in it. The y-coordinate passed in here is * a particular number in it. The y-coordinate passed in here is

View File

@ -8,7 +8,7 @@ typedef unsigned char digit;
/* --- Solver structures, definitions --- */ /* --- Solver structures, definitions --- */
#ifdef STANDALONE_SOLVER #ifdef STANDALONE_SOLVER
int solver_show_working, solver_recurse_depth; extern int solver_show_working, solver_recurse_depth;
#endif #endif
struct latin_solver { struct latin_solver {