summaryrefslogtreecommitdiffstats
path: root/apps/plugins/sudoku/sudoku.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2012-01-08 08:55:25 +0000
committerBertrik Sikken <bertrik@sikken.nl>2012-01-08 08:55:25 +0000
commit02a270ce2e65a9a1f4efaeeffbfebb941258b3ef (patch)
tree2c0030e36f0b2688f2af12ae4f7d55c6d4d4000e /apps/plugins/sudoku/sudoku.c
parent92ef9b260a5dce9c5ce5e9ffeb34398238b1ace7 (diff)
downloadrockbox-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/sudoku.c')
-rw-r--r--apps/plugins/sudoku/sudoku.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c
index 73c18708d2..d19b556352 100644
--- a/apps/plugins/sudoku/sudoku.c
+++ b/apps/plugins/sudoku/sudoku.c
@@ -284,7 +284,7 @@ static unsigned int cellypos[9]={
#define BLOCK 3
#define SIZE (BLOCK*BLOCK)
-void sudoku_solve(struct sudoku_state_t* state)
+static void sudoku_solve(struct sudoku_state_t* state)
{
bool ret = sudoku_solve_board(state);
@@ -317,7 +317,7 @@ static void restore_state(struct sudoku_state_t *state)
#endif
}
-void default_state(struct sudoku_state_t* state)
+static void default_state(struct sudoku_state_t* state)
{
int r,c;
@@ -340,7 +340,7 @@ void default_state(struct sudoku_state_t* state)
state->editmode=0;
}
-void clear_state(struct sudoku_state_t* state)
+static void clear_state(struct sudoku_state_t* state)
{
int r,c;
@@ -361,7 +361,7 @@ void clear_state(struct sudoku_state_t* state)
}
/* Check the status of the board, assuming a change at the cursor location */
-bool check_status(struct sudoku_state_t* state)
+static bool check_status(struct sudoku_state_t* state)
{
int check[9];
int r,c;
@@ -422,7 +422,7 @@ bool check_status(struct sudoku_state_t* state)
/* Load game - only ".ss" is officially supported, but any sensible
text representation (one line per row) may load.
*/
-bool load_sudoku(struct sudoku_state_t* state, char* filename)
+static bool load_sudoku(struct sudoku_state_t* state, char* filename)
{
int fd;
size_t n;
@@ -520,7 +520,7 @@ bool load_sudoku(struct sudoku_state_t* state, char* filename)
return(true);
}
-bool save_sudoku(struct sudoku_state_t* state)
+static bool save_sudoku(struct sudoku_state_t* state)
{
int fd;
int r,c;
@@ -583,7 +583,7 @@ bool save_sudoku(struct sudoku_state_t* state)
}
}
-void clear_board(struct sudoku_state_t* state)
+static void clear_board(struct sudoku_state_t* state)
{
int r,c;
@@ -596,7 +596,7 @@ void clear_board(struct sudoku_state_t* state)
state->y=0;
}
-void update_cell(struct sudoku_state_t* state, int r, int c)
+static void update_cell(struct sudoku_state_t* state, int r, int c)
{
/* We have four types of cell:
1) User-entered number
@@ -630,7 +630,7 @@ void update_cell(struct sudoku_state_t* state, int r, int c)
}
-void display_board(struct sudoku_state_t* state)
+static void display_board(struct sudoku_state_t* state)
{
int r,c;
#ifdef SUDOKU_BUTTON_POSSIBLE
@@ -823,7 +823,7 @@ void display_board(struct sudoku_state_t* state)
rb->lcd_update();
}
-bool sudoku_generate(struct sudoku_state_t* state)
+static bool sudoku_generate(struct sudoku_state_t* state)
{
char* difficulty;
char str[80];
@@ -902,7 +902,7 @@ enum {
SM_QUIT,
};
-int sudoku_menu(struct sudoku_state_t* state)
+static int sudoku_menu(struct sudoku_state_t* state)
{
int result;
@@ -972,7 +972,7 @@ int sudoku_menu(struct sudoku_state_t* state)
}
/* Menu used when user is in edit mode - i.e. creating a new game manually */
-int sudoku_edit_menu(struct sudoku_state_t* state)
+static int sudoku_edit_menu(struct sudoku_state_t* state)
{
int result;
@@ -1001,7 +1001,7 @@ int sudoku_edit_menu(struct sudoku_state_t* state)
return result;
}
-void move_cursor(struct sudoku_state_t* state, int newx, int newy)
+static void move_cursor(struct sudoku_state_t* state, int newx, int newy)
{
int oldx, oldy;