forked from len0rd/rockbox
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
This commit is contained in:
parent
e03faf835d
commit
d91e67acc9
14 changed files with 124 additions and 122 deletions
|
@ -110,14 +110,14 @@ void patterns_deinit(struct screen* display)
|
|||
#endif /* HAVE_LCD_CHARCELLS */
|
||||
|
||||
/*Call when the program exit*/
|
||||
void jackpot_exit(void)
|
||||
static void jackpot_exit(void)
|
||||
{
|
||||
#ifdef HAVE_LCD_CHARCELLS
|
||||
patterns_deinit(rb->screens[SCREEN_MAIN]);
|
||||
#endif /* HAVE_LCD_CHARCELLS */
|
||||
}
|
||||
|
||||
void jackpot_init(struct jackpot* game)
|
||||
static void jackpot_init(struct jackpot* game)
|
||||
{
|
||||
int i,j;
|
||||
game->money=20;
|
||||
|
@ -128,7 +128,7 @@ void jackpot_init(struct jackpot* game)
|
|||
}
|
||||
}
|
||||
|
||||
int jackpot_get_result(struct jackpot* game)
|
||||
static int jackpot_get_result(struct jackpot* game)
|
||||
{
|
||||
int i=NB_SLOTS-1;
|
||||
int multiple=1;
|
||||
|
@ -141,7 +141,7 @@ int jackpot_get_result(struct jackpot* game)
|
|||
return(result);
|
||||
}
|
||||
|
||||
int jackpot_get_gain(struct jackpot* game)
|
||||
static int jackpot_get_gain(struct jackpot* game)
|
||||
{
|
||||
switch (jackpot_get_result(game))
|
||||
{
|
||||
|
@ -164,7 +164,7 @@ int jackpot_get_gain(struct jackpot* game)
|
|||
return(0);
|
||||
}
|
||||
|
||||
void jackpot_display_slot_machine(struct jackpot* game, struct screen* display)
|
||||
static void jackpot_display_slot_machine(struct jackpot* game, struct screen* display)
|
||||
{
|
||||
char str[20];
|
||||
int i;
|
||||
|
@ -215,7 +215,7 @@ void jackpot_display_slot_machine(struct jackpot* game, struct screen* display)
|
|||
}
|
||||
|
||||
|
||||
void jackpot_info_message(struct screen* display, char* message)
|
||||
static void jackpot_info_message(struct screen* display, char* message)
|
||||
{
|
||||
#ifdef HAVE_LCD_CHARCELLS
|
||||
display->puts_scroll(0,1,message);
|
||||
|
@ -232,7 +232,7 @@ void jackpot_info_message(struct screen* display, char* message)
|
|||
#endif /* HAVE_LCD_CHARCELLS */
|
||||
}
|
||||
|
||||
void jackpot_print_turn_result(struct jackpot* game,
|
||||
static void jackpot_print_turn_result(struct jackpot* game,
|
||||
int gain, struct screen* display)
|
||||
{
|
||||
char str[20];
|
||||
|
@ -250,7 +250,7 @@ void jackpot_print_turn_result(struct jackpot* game,
|
|||
display->update();
|
||||
}
|
||||
|
||||
void jackpot_play_turn(struct jackpot* game)
|
||||
static void jackpot_play_turn(struct jackpot* game)
|
||||
{
|
||||
/* How many pattern? */
|
||||
int nb_turns[NB_SLOTS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue