summaryrefslogtreecommitdiffstats
path: root/apps/plugins/dice.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-09-17 17:20:27 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-09-17 17:20:27 +0000
commitd91e67acc97263504a7338856b055d565e14c99a (patch)
tree47f4e8f80c99b7c049afeeb4ee926ce1b2ff24f8 /apps/plugins/dice.c
parente03faf835dd7b879f589e3dc080991bab86dfae7 (diff)
downloadrockbox-d91e67acc97263504a7338856b055d565e14c99a.tar.gz
rockbox-d91e67acc97263504a7338856b055d565e14c99a.tar.bz2
rockbox-d91e67acc97263504a7338856b055d565e14c99a.zip
plugins: make local functions static for a subset of plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30564 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/dice.c')
-rw-r--r--apps/plugins/dice.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c
index 7acb2e79ca..3bff30d228 100644
--- a/apps/plugins/dice.c
+++ b/apps/plugins/dice.c
@@ -68,10 +68,10 @@ static struct configdata config[] =
{TYPE_ENUM, 0, 8, { .int_p = &sides_index }, "side count", sides_conf}
};
-void dice_init(struct dices* dice);
-void dice_roll(struct dices* dice);
-void dice_print(struct dices* dice, struct screen* display);
-bool dice_menu(struct dices* dice);
+static void dice_init(struct dices* dice);
+static void dice_roll(struct dices* dice);
+static void dice_print(struct dices* dice, struct screen* display);
+static bool dice_menu(struct dices* dice);
/* plugin entry point */
enum plugin_status plugin_start(const void* parameter) {
@@ -107,13 +107,13 @@ enum plugin_status plugin_start(const void* parameter) {
}
}
-void dice_init(struct dices* dice){
+static void dice_init(struct dices* dice){
dice->nb_dices=INITIAL_NB_DICES;
sides_index=INITIAL_NB_SIDES;
}
-void dice_roll(struct dices* dice) {
+static void dice_roll(struct dices* dice) {
int i;
dice->total = 0;
for (i=0; i<dice->nb_dices; i++) {
@@ -122,7 +122,7 @@ void dice_roll(struct dices* dice) {
}
}
-void dice_print_string_buffer(struct dices* dice, char* buffer,
+static void dice_print_string_buffer(struct dices* dice, char* buffer,
int start, int end){
int i, written;
for (i=start; i<end; i++) {
@@ -132,7 +132,7 @@ void dice_print_string_buffer(struct dices* dice, char* buffer,
}
}
-void dice_print(struct dices* dice, struct screen* display){
+static void dice_print(struct dices* dice, struct screen* display){
char buffer[PRINT_BUFFER_LENGTH];
/* display characteristics */
int char_height, char_width;
@@ -171,7 +171,7 @@ void dice_print(struct dices* dice, struct screen* display){
display->update();
}
-bool dice_menu(struct dices * dice) {
+static bool dice_menu(struct dices * dice) {
int selection;
bool menu_quit = false, result = false;