diff options
author | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-08 15:26:36 +0000 |
---|---|---|
committer | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-08 15:26:36 +0000 |
commit | 5c9b90d7a12e90e7a0aa2af8686b20bfa24742c4 (patch) | |
tree | 5081051a4121e0c929ff471684703d4ddc821236 | |
parent | 01d52892036af77202db76fe86e808453d554533 (diff) |
Make some functions static.
Patch by Stefan Huehner, stefan at huehner org.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18955 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/font_load_ft.c | 10 | ||||
-rw-r--r-- | libvo/sub.c | 2 | ||||
-rw-r--r-- | libvo/vo_aa.c | 14 | ||||
-rw-r--r-- | libvo/vo_jpeg.c | 2 | ||||
-rw-r--r-- | libvo/vo_md5sum.c | 2 | ||||
-rw-r--r-- | libvo/vo_png.c | 2 | ||||
-rw-r--r-- | libvo/vo_pnm.c | 8 | ||||
-rw-r--r-- | libvo/vo_svga.c | 4 | ||||
-rw-r--r-- | libvo/x11_common.c | 2 |
9 files changed, 23 insertions, 23 deletions
diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c index c7f6dff14e..c555b162c6 100644 --- a/libvo/font_load_ft.c +++ b/libvo/font_load_ft.c @@ -234,7 +234,7 @@ static int check_font(font_desc_t *desc, float ppem, int padding, int pic_idx, } // general outline -void outline( +static void outline( unsigned char *s, unsigned char *t, int width, @@ -277,7 +277,7 @@ void outline( // 1 pixel outline -void outline1( +static void outline1( unsigned char *s, unsigned char *t, int width, @@ -315,7 +315,7 @@ void outline1( } // "0 pixel outline" -void outline0( +static void outline0( unsigned char *s, unsigned char *t, int width, @@ -330,7 +330,7 @@ void outline0( } // gaussian blur -void blur( +static void blur( unsigned char *buffer, unsigned short *tmp2, int width, @@ -654,7 +654,7 @@ static int prepare_font(font_desc_t *desc, FT_Face face, float ppem, int pic_idx } -int generate_tables(font_desc_t *desc, double thickness, double radius) +static int generate_tables(font_desc_t *desc, double thickness, double radius) { int width = desc->max_height; int height = desc->max_width; diff --git a/libvo/sub.c b/libvo/sub.c index 9093e101d8..cbf3e5bedd 100644 --- a/libvo/sub.c +++ b/libvo/sub.c @@ -765,7 +765,7 @@ extern void vo_draw_alpha_init(void); mp_osd_obj_t* vo_osd_list=NULL; -mp_osd_obj_t* new_osd_obj(int type){ +static mp_osd_obj_t* new_osd_obj(int type){ mp_osd_obj_t* osd=malloc(sizeof(mp_osd_obj_t)); memset(osd,0,sizeof(mp_osd_obj_t)); osd->next=vo_osd_list; diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c index 3dc0a1ae52..860799d025 100644 --- a/libvo/vo_aa.c +++ b/libvo/vo_aa.c @@ -136,8 +136,8 @@ resize(void){ } -void -osdmessage(int duration, int deko, char *fmt, ...) +static void +osdmessage(int duration, int deko, const char *fmt, ...) { /* * for outputting a centered string at the bottom @@ -163,8 +163,8 @@ osdmessage(int duration, int deko, char *fmt, ...) posbar[0]='\0'; } -void -osdpercent(int duration, int deko, int min, int max, int val, char * desc, char * unit) +static void +osdpercent(int duration, int deko, int min, int max, int val, const char * desc, const char * unit) { /* * prints a bar for setting values @@ -190,7 +190,7 @@ osdpercent(int duration, int deko, int min, int max, int val, char * desc, char } -void +static void printosdtext(void) { if(osd_text_length > 0 && !vo_osd_text) { @@ -220,7 +220,7 @@ printosdtext(void) } } -void +static void printosdprogbar(void){ /* print mplayer osd-progbar */ if (vo_osd_progbar_type!=-1){ @@ -574,7 +574,7 @@ draw_osd(void){ #endif } -int +static int getcolor(char * s){ int i; char * rest; diff --git a/libvo/vo_jpeg.c b/libvo/vo_jpeg.c index 1cc0599023..82eab71635 100644 --- a/libvo/vo_jpeg.c +++ b/libvo/vo_jpeg.c @@ -98,7 +98,7 @@ static int framenum = 0; * returns, everything went well. */ -void jpeg_mkdir(char *buf, int verbose) { +static void jpeg_mkdir(char *buf, int verbose) { struct stat stat_p; #ifndef __MINGW32__ diff --git a/libvo/vo_md5sum.c b/libvo/vo_md5sum.c index 7c4d167f38..317f3384f0 100644 --- a/libvo/vo_md5sum.c +++ b/libvo/vo_md5sum.c @@ -85,7 +85,7 @@ int framenum = 0; * \return nothing It does not return. */ -void md5sum_write_error(void) { +static void md5sum_write_error(void) { mp_msg(MSGT_VO, MSGL_ERR, MSGTR_ErrorWritingFile, info.short_name); exit_player(MSGTR_Exit_error); } diff --git a/libvo/vo_png.c b/libvo/vo_png.c index f4531d2bc2..2d56f817d2 100644 --- a/libvo/vo_png.c +++ b/libvo/vo_png.c @@ -59,7 +59,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin } -struct pngdata create_png (char * fname, int image_width, int image_height, int swapped) +static struct pngdata create_png (char * fname, int image_width, int image_height, int swapped) { struct pngdata png; diff --git a/libvo/vo_pnm.c b/libvo/vo_pnm.c index 26054a2b86..da5afb906e 100644 --- a/libvo/vo_pnm.c +++ b/libvo/vo_pnm.c @@ -96,7 +96,7 @@ char *pnm_file_extension = NULL; * \return nothing It does not return. */ -void pnm_write_error(void) { +static void pnm_write_error(void) { mp_msg(MSGT_VO, MSGL_ERR, MSGTR_ErrorWritingFile, info.short_name); exit_player(MSGTR_Exit_error); } @@ -197,7 +197,7 @@ static int preinit(const char *arg) * returns, everything went well. */ -void pnm_mkdir(char *buf, int verbose) { +static void pnm_mkdir(char *buf, int verbose) { struct stat stat_p; /* Silly MING32 bug workaround */ @@ -298,7 +298,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, * \return none The player will exit if anything goes wrong. */ -void pnm_write_pnm(FILE *outfile, mp_image_t *mpi) +static void pnm_write_pnm(FILE *outfile, mp_image_t *mpi) { uint32_t w = mpi->w; uint32_t h = mpi->h; @@ -433,7 +433,7 @@ void pnm_write_pnm(FILE *outfile, mp_image_t *mpi) * \return none The player will exit if anything goes wrong. */ -void pnm_write_image(mp_image_t *mpi) +static void pnm_write_image(mp_image_t *mpi) { static int framenum = 0, framecounter = 0, subdircounter = 0; char buf[BUFLENGTH]; diff --git a/libvo/vo_svga.c b/libvo/vo_svga.c index 6da2821e93..a76f269b21 100644 --- a/libvo/vo_svga.c +++ b/libvo/vo_svga.c @@ -303,7 +303,7 @@ int page; return VO_TRUE; } -int bpp_from_vminfo(vga_modeinfo *vminfo){ +static int bpp_from_vminfo(vga_modeinfo *vminfo){ switch(vminfo->colors){ case 2: return 1; case 16: return 4; @@ -315,7 +315,7 @@ int bpp_from_vminfo(vga_modeinfo *vminfo){ return 0; } -int find_best_svga_mode(int req_w,int req_h, int req_bpp){ +static int find_best_svga_mode(int req_w,int req_h, int req_bpp){ int badness,prev_badness; int bestmode,lastmode; int i; diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 199992eeac..9149192c40 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -559,7 +559,7 @@ void vo_uninit(void) extern void mplayer_put_key(int code); #ifdef XF86XK_AudioPause -void vo_x11_putkey_ext(int keysym) +static void vo_x11_putkey_ext(int keysym) { switch (keysym) { |