diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2012-01-08 08:55:25 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2012-01-08 08:55:25 +0000 |
commit | 02a270ce2e65a9a1f4efaeeffbfebb941258b3ef (patch) | |
tree | 2c0030e36f0b2688f2af12ae4f7d55c6d4d4000e /apps/plugins/sudoku/generator.c | |
parent | 92ef9b260a5dce9c5ce5e9ffeb34398238b1ace7 (diff) | |
download | rockbox-02a270ce2e65a9a1f4efaeeffbfebb941258b3ef.tar.gz rockbox-02a270ce2e65a9a1f4efaeeffbfebb941258b3ef.zip |
sudoku: make local functions static and add missing #include
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31631 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/sudoku/generator.c')
-rw-r--r-- | apps/plugins/sudoku/generator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/sudoku/generator.c b/apps/plugins/sudoku/generator.c index ba74fa5b08..0388d34431 100644 --- a/apps/plugins/sudoku/generator.c +++ b/apps/plugins/sudoku/generator.c | |||
@@ -34,6 +34,7 @@ | |||
34 | 34 | ||
35 | #include "sudoku.h" | 35 | #include "sudoku.h" |
36 | #include "templates.h" | 36 | #include "templates.h" |
37 | #include "generator.h" | ||
37 | 38 | ||
38 | #define assert(x) | 39 | #define assert(x) |
39 | 40 | ||
@@ -618,6 +619,7 @@ allmoves( void ) | |||
618 | } | 619 | } |
619 | 620 | ||
620 | /* Helper: sort based on index */ | 621 | /* Helper: sort based on index */ |
622 | #if 0 /* unused function */ | ||
621 | static | 623 | static |
622 | int | 624 | int |
623 | cmpindex( const void * a, const void * b ) | 625 | cmpindex( const void * a, const void * b ) |
@@ -629,7 +631,7 @@ cmpindex( const void * a, const void * b ) | |||
629 | * 'easy' moves first, and if none are possible, then try for more | 631 | * 'easy' moves first, and if none are possible, then try for more |
630 | * cryptic moves. | 632 | * cryptic moves. |
631 | */ | 633 | */ |
632 | int | 634 | static int |
633 | findhints( void ) | 635 | findhints( void ) |
634 | { | 636 | { |
635 | int i, n, mutated = 0; | 637 | int i, n, mutated = 0; |
@@ -695,6 +697,7 @@ findhints( void ) | |||
695 | 697 | ||
696 | return n; | 698 | return n; |
697 | } | 699 | } |
700 | #endif /* unused function */ | ||
698 | 701 | ||
699 | /* Deterministic solver; return 0 on success, else -1 on error. | 702 | /* Deterministic solver; return 0 on success, else -1 on error. |
700 | */ | 703 | */ |