forked from len0rd/rockbox
sudoku: make local functions static and add missing #include
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31631 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
92ef9b260a
commit
02a270ce2e
2 changed files with 17 additions and 14 deletions
|
@ -34,6 +34,7 @@
|
|||
|
||||
#include "sudoku.h"
|
||||
#include "templates.h"
|
||||
#include "generator.h"
|
||||
|
||||
#define assert(x)
|
||||
|
||||
|
@ -618,6 +619,7 @@ allmoves( void )
|
|||
}
|
||||
|
||||
/* Helper: sort based on index */
|
||||
#if 0 /* unused function */
|
||||
static
|
||||
int
|
||||
cmpindex( const void * a, const void * b )
|
||||
|
@ -629,7 +631,7 @@ cmpindex( const void * a, const void * b )
|
|||
* 'easy' moves first, and if none are possible, then try for more
|
||||
* cryptic moves.
|
||||
*/
|
||||
int
|
||||
static int
|
||||
findhints( void )
|
||||
{
|
||||
int i, n, mutated = 0;
|
||||
|
@ -695,6 +697,7 @@ findhints( void )
|
|||
|
||||
return n;
|
||||
}
|
||||
#endif /* unused function */
|
||||
|
||||
/* Deterministic solver; return 0 on success, else -1 on error.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue