diff options
Diffstat (limited to 'apps/plugins/mikmod/mikmod.c')
-rw-r--r-- | apps/plugins/mikmod/mikmod.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/apps/plugins/mikmod/mikmod.c b/apps/plugins/mikmod/mikmod.c index eb3be13140..3302fc306a 100644 --- a/apps/plugins/mikmod/mikmod.c +++ b/apps/plugins/mikmod/mikmod.c | |||
@@ -151,7 +151,7 @@ static int compare(const void* p1, const void* p2) | |||
151 | } | 151 | } |
152 | */ | 152 | */ |
153 | 153 | ||
154 | bool mod_ext(const char ext[]) | 154 | static bool mod_ext(const char ext[]) |
155 | { | 155 | { |
156 | if(!ext) | 156 | if(!ext) |
157 | return false; | 157 | return false; |
@@ -181,7 +181,7 @@ bool mod_ext(const char ext[]) | |||
181 | } | 181 | } |
182 | 182 | ||
183 | /*Read directory contents for scrolling. */ | 183 | /*Read directory contents for scrolling. */ |
184 | void get_mod_list(void) | 184 | static void get_mod_list(void) |
185 | { | 185 | { |
186 | struct tree_context *tree = rb->tree_get_context(); | 186 | struct tree_context *tree = rb->tree_get_context(); |
187 | struct entry *dircache = rb->tree_get_entries(tree); | 187 | struct entry *dircache = rb->tree_get_entries(tree); |
@@ -211,7 +211,7 @@ void get_mod_list(void) | |||
211 | } | 211 | } |
212 | } | 212 | } |
213 | 213 | ||
214 | int change_filename(int direct) | 214 | static int change_filename(int direct) |
215 | { | 215 | { |
216 | bool file_erased = (file_pt[curfile] == NULL); | 216 | bool file_erased = (file_pt[curfile] == NULL); |
217 | direction = direct; | 217 | direction = direct; |
@@ -268,7 +268,7 @@ static inline void synthbuf(void) | |||
268 | VC_WriteBytes(outptr, BUF_SIZE); | 268 | VC_WriteBytes(outptr, BUF_SIZE); |
269 | } | 269 | } |
270 | 270 | ||
271 | void get_more(const void** start, size_t* size) | 271 | static void get_more(const void** start, size_t* size) |
272 | { | 272 | { |
273 | #ifndef SYNC | 273 | #ifndef SYNC |
274 | if (lastswap != swap) | 274 | if (lastswap != swap) |
@@ -289,7 +289,7 @@ void get_more(const void** start, size_t* size) | |||
289 | #endif | 289 | #endif |
290 | } | 290 | } |
291 | 291 | ||
292 | void showinfo(void) | 292 | static void showinfo(void) |
293 | { | 293 | { |
294 | char statustext[LINE_LENGTH]; | 294 | char statustext[LINE_LENGTH]; |
295 | 295 | ||
@@ -347,7 +347,7 @@ void showinfo(void) | |||
347 | rb->lcd_update(); | 347 | rb->lcd_update(); |
348 | } | 348 | } |
349 | 349 | ||
350 | void showsamples(void) | 350 | static void showsamples(void) |
351 | { | 351 | { |
352 | int i; | 352 | int i; |
353 | char statustext[LINE_LENGTH]; | 353 | char statustext[LINE_LENGTH]; |
@@ -366,7 +366,7 @@ void showsamples(void) | |||
366 | screenupdated = true; | 366 | screenupdated = true; |
367 | } | 367 | } |
368 | 368 | ||
369 | void showinstruments(void) | 369 | static void showinstruments(void) |
370 | { | 370 | { |
371 | int i; | 371 | int i; |
372 | char statustext[LINE_LENGTH]; | 372 | char statustext[LINE_LENGTH]; |
@@ -385,7 +385,7 @@ void showinstruments(void) | |||
385 | screenupdated = true; | 385 | screenupdated = true; |
386 | } | 386 | } |
387 | 387 | ||
388 | void showcomments(void) | 388 | static void showcomments(void) |
389 | { | 389 | { |
390 | int i, j=0, k=0, l; | 390 | int i, j=0, k=0, l; |
391 | char statustext[LINE_LENGTH]; | 391 | char statustext[LINE_LENGTH]; |
@@ -424,7 +424,7 @@ void showcomments(void) | |||
424 | screenupdated = true; | 424 | screenupdated = true; |
425 | } | 425 | } |
426 | 426 | ||
427 | void changedisplay(void) | 427 | static void changedisplay(void) |
428 | { | 428 | { |
429 | display = (display+1) % 4; | 429 | display = (display+1) % 4; |
430 | 430 | ||
@@ -493,7 +493,7 @@ static struct configdata config[] = | |||
493 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.boost }, "CPU Boost", NULL}, | 493 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.boost }, "CPU Boost", NULL}, |
494 | }; | 494 | }; |
495 | 495 | ||
496 | void applysettings(void) | 496 | static void applysettings(void) |
497 | { | 497 | { |
498 | md_pansep = settings.pansep; | 498 | md_pansep = settings.pansep; |
499 | md_reverb = settings.reverb; | 499 | md_reverb = settings.reverb; |
@@ -521,7 +521,7 @@ void applysettings(void) | |||
521 | /** | 521 | /** |
522 | Shows the settings menu | 522 | Shows the settings menu |
523 | */ | 523 | */ |
524 | int settings_menu(void) | 524 | static int settings_menu(void) |
525 | { | 525 | { |
526 | int selection = 0; | 526 | int selection = 0; |
527 | 527 | ||
@@ -581,7 +581,7 @@ int settings_menu(void) | |||
581 | /** | 581 | /** |
582 | Show the main menu | 582 | Show the main menu |
583 | */ | 583 | */ |
584 | int main_menu(void) | 584 | static int main_menu(void) |
585 | { | 585 | { |
586 | int selection = 0; | 586 | int selection = 0; |
587 | int result; | 587 | int result; |
@@ -614,7 +614,7 @@ int main_menu(void) | |||
614 | 614 | ||
615 | #ifdef USETHREADS | 615 | #ifdef USETHREADS |
616 | /* double buffering thread */ | 616 | /* double buffering thread */ |
617 | void thread(void) | 617 | static void thread(void) |
618 | { | 618 | { |
619 | struct queue_event ev; | 619 | struct queue_event ev; |
620 | 620 | ||
@@ -630,13 +630,13 @@ void thread(void) | |||
630 | } | 630 | } |
631 | #endif | 631 | #endif |
632 | 632 | ||
633 | void mm_errorhandler(void) | 633 | static void mm_errorhandler(void) |
634 | { | 634 | { |
635 | rb->splashf(HZ, "%s", MikMod_strerror(MikMod_errno)); | 635 | rb->splashf(HZ, "%s", MikMod_strerror(MikMod_errno)); |
636 | quit = true; | 636 | quit = true; |
637 | } | 637 | } |
638 | 638 | ||
639 | int playfile(char* filename) | 639 | static int playfile(char* filename) |
640 | { | 640 | { |
641 | int vol = 0; | 641 | int vol = 0; |
642 | int button; | 642 | int button; |