changeset 30590:d218228dc74d

Mark some more functions that are not used outside of their files as static.
author diego
date Thu, 18 Feb 2010 09:26:00 +0000
parents df6c41f16b40
children 60ad8ca441dc
files asxparser.c input/input.c libao2/ao_sdl.c libmenu/menu.c playtree.c spudec.c
diffstat 6 files changed, 15 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/asxparser.c	Thu Feb 18 00:18:50 2010 +0000
+++ b/asxparser.c	Thu Feb 18 09:26:00 2010 +0000
@@ -36,7 +36,7 @@
 
 ////// List utils
 
-void
+static void
 asx_list_add(void* list_ptr,void* entry){
   void** list = *(void***)list_ptr;
   int c = 0;
@@ -53,7 +53,7 @@
 }
 
 
-void
+static void
 asx_list_remove(void* list_ptr,void* entry,ASX_FreeFunc free_func) {
   void** list = *(void***)list_ptr;
   int c,e = -1;
--- a/input/input.c	Thu Feb 18 00:18:50 2010 +0000
+++ b/input/input.c	Thu Feb 18 09:26:00 2010 +0000
@@ -1494,7 +1494,7 @@
 #define BS_MAX 256
 #define SPACE_CHAR " \n\r\t"
 
-void
+static void
 mp_input_bind_keys(const int keys[MP_MAX_KEY_DOWN+1], char* cmd) {
   int i = 0,j;
   mp_cmd_bind_t* bind = NULL;
@@ -1538,7 +1538,7 @@
   memcpy(bind->input,keys,(MP_MAX_KEY_DOWN+1)*sizeof(int));
 }
 
-void
+static void
 mp_input_add_binds(const mp_cmd_bind_t* list) {
   int i;
   for(i = 0 ; list[i].cmd ; i++)
--- a/libao2/ao_sdl.c	Thu Feb 18 00:18:50 2010 +0000
+++ b/libao2/ao_sdl.c	Thu Feb 18 09:26:00 2010 +0000
@@ -120,7 +120,8 @@
 }
 
 // SDL Callback function
-void outputaudio(void *unused, Uint8 *stream, int len) {
+static void outputaudio(void *unused, Uint8 *stream, int len)
+{
 	//SDL_MixAudio(stream, read_buffer(buffers, len), len, SDL_MIX_MAXVOLUME);
 	//if(!full_buffers) printf("SDL: Buffer underrun!\n");
 
--- a/libmenu/menu.c	Thu Feb 18 00:18:50 2010 +0000
+++ b/libmenu/menu.c	Thu Feb 18 09:26:00 2010 +0000
@@ -94,7 +94,8 @@
 static int cmd_bindings_num = 0;
 
 
-menu_cmd_bindings_t *get_cmd_bindings(const char *name) {
+static menu_cmd_bindings_t *get_cmd_bindings(const char *name)
+{
   int i;
   for (i = 0; i < cmd_bindings_num; ++i)
     if (!strcasecmp(cmd_bindings[i].name, name))
@@ -725,7 +726,8 @@
   return l;
 }
 
-char* menu_text_get_next_line(char* txt, int max_width) {
+static char* menu_text_get_next_line(char* txt, int max_width)
+{
   int i = 0;
   render_txt(txt);
   while (*txt) {
--- a/playtree.c	Thu Feb 18 00:18:50 2010 +0000
+++ b/playtree.c	Thu Feb 18 09:26:00 2010 +0000
@@ -415,7 +415,7 @@
 }
 
 // all children if deep < 0
-void
+static void
 play_tree_set_flag(play_tree_t* pt, int flags , int deep) {
   play_tree_t*  i;
 
@@ -428,7 +428,7 @@
   }
 }
 
-void
+static void
 play_tree_unset_flag(play_tree_t* pt, int flags , int deep) {
   play_tree_t*  i;
 
--- a/spudec.c	Thu Feb 18 00:18:50 2010 +0000
+++ b/spudec.c	Thu Feb 18 09:26:00 2010 +0000
@@ -767,8 +767,9 @@
   }
 }
 
-void sws_spu_image(unsigned char *d1, unsigned char *d2, int dw, int dh, int ds,
-	unsigned char *s1, unsigned char *s2, int sw, int sh, int ss)
+static void sws_spu_image(unsigned char *d1, unsigned char *d2, int dw, int dh,
+                          int ds, unsigned char *s1, unsigned char *s2, int sw,
+                          int sh, int ss)
 {
 	struct SwsContext *ctx;
 	static SwsFilter filter;