···34343535#include "sudoku.h"
3636#include "templates.h"
3737+#include "generator.h"
37383839#define assert(x)
3940···618619}
619620620621/* Helper: sort based on index */
622622+#if 0 /* unused function */
621623static
622624int
623625cmpindex( const void * a, const void * b )
···629631 * 'easy' moves first, and if none are possible, then try for more
630632 * cryptic moves.
631633 */
632632-int
634634+static int
633635findhints( void )
634636{
635637 int i, n, mutated = 0;
···695697696698 return n;
697699}
700700+#endif /* unused function */
698701699702/* Deterministic solver; return 0 on success, else -1 on error.
700703 */
+13-13
apps/plugins/sudoku/sudoku.c
···284284#define BLOCK 3
285285#define SIZE (BLOCK*BLOCK)
286286287287-void sudoku_solve(struct sudoku_state_t* state)
287287+static void sudoku_solve(struct sudoku_state_t* state)
288288{
289289 bool ret = sudoku_solve_board(state);
290290···317317#endif
318318}
319319320320-void default_state(struct sudoku_state_t* state)
320320+static void default_state(struct sudoku_state_t* state)
321321{
322322 int r,c;
323323···340340 state->editmode=0;
341341}
342342343343-void clear_state(struct sudoku_state_t* state)
343343+static void clear_state(struct sudoku_state_t* state)
344344{
345345 int r,c;
346346···361361}
362362363363/* Check the status of the board, assuming a change at the cursor location */
364364-bool check_status(struct sudoku_state_t* state)
364364+static bool check_status(struct sudoku_state_t* state)
365365{
366366 int check[9];
367367 int r,c;
···422422/* Load game - only ".ss" is officially supported, but any sensible
423423 text representation (one line per row) may load.
424424*/
425425-bool load_sudoku(struct sudoku_state_t* state, char* filename)
425425+static bool load_sudoku(struct sudoku_state_t* state, char* filename)
426426{
427427 int fd;
428428 size_t n;
···520520 return(true);
521521}
522522523523-bool save_sudoku(struct sudoku_state_t* state)
523523+static bool save_sudoku(struct sudoku_state_t* state)
524524{
525525 int fd;
526526 int r,c;
···583583 }
584584}
585585586586-void clear_board(struct sudoku_state_t* state)
586586+static void clear_board(struct sudoku_state_t* state)
587587{
588588 int r,c;
589589···596596 state->y=0;
597597}
598598599599-void update_cell(struct sudoku_state_t* state, int r, int c)
599599+static void update_cell(struct sudoku_state_t* state, int r, int c)
600600{
601601 /* We have four types of cell:
602602 1) User-entered number
···630630}
631631632632633633-void display_board(struct sudoku_state_t* state)
633633+static void display_board(struct sudoku_state_t* state)
634634{
635635 int r,c;
636636#ifdef SUDOKU_BUTTON_POSSIBLE
···823823 rb->lcd_update();
824824}
825825826826-bool sudoku_generate(struct sudoku_state_t* state)
826826+static bool sudoku_generate(struct sudoku_state_t* state)
827827{
828828 char* difficulty;
829829 char str[80];
···902902 SM_QUIT,
903903};
904904905905-int sudoku_menu(struct sudoku_state_t* state)
905905+static int sudoku_menu(struct sudoku_state_t* state)
906906{
907907 int result;
908908···972972}
973973974974/* Menu used when user is in edit mode - i.e. creating a new game manually */
975975-int sudoku_edit_menu(struct sudoku_state_t* state)
975975+static int sudoku_edit_menu(struct sudoku_state_t* state)
976976{
977977 int result;
978978···10011001 return result;
10021002}
1003100310041004-void move_cursor(struct sudoku_state_t* state, int newx, int newy)
10041004+static void move_cursor(struct sudoku_state_t* state, int newx, int newy)
10051005{
10061006 int oldx, oldy;
10071007