I've never trusted common variables. Take those bare ints out of
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 27 Dec 2009 10:01:18 +0000 (10:01 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 27 Dec 2009 10:01:18 +0000 (10:01 +0000)
latin.h and put them in latin.c with 'extern' declarations in the
header.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8794 cda61777-01e9-0310-a592-d414129be87e

latin.c
latin.h

diff --git a/latin.c b/latin.c
index 34c06c4..116cdae 100644 (file)
--- a/latin.c
+++ b/latin.c
  * 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
diff --git a/latin.h b/latin.h
index dbea6e4..4ec6954 100644 (file)
--- a/latin.h
+++ b/latin.h
@@ -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 {