changeset 32975:0dc9d64cd64e

Make functions static that are only used inside the file.
author ib
date Wed, 09 Mar 2011 15:36:10 +0000
parents 5509eb454848
children baf42f6f5518
files gui/mplayer/gui_common.c gui/mplayer/gui_common.h
diffstat 2 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gui/mplayer/gui_common.c	Wed Mar 09 14:15:14 2011 +0000
+++ b/gui/mplayer/gui_common.c	Wed Mar 09 15:36:10 2011 +0000
@@ -107,7 +107,7 @@
     }
 }
 
-char *Translate(char *str)
+static char *Translate(char *str)
 {
     static char trbuf[512];
     char tmp[512];
@@ -310,7 +310,7 @@
     return trbuf;
 }
 
-void PutImage(txSample *bf, int x, int y, int max, int ofs)
+static void PutImage(txSample *bf, int x, int y, int max, int ofs)
 {
     int i = 0, ix, iy;
     uint32_t *buf = NULL;
@@ -350,7 +350,7 @@
 #endif
 }
 
-void SimplePotmeterPutImage(txSample *bf, int x, int y, float frac)
+static void SimplePotmeterPutImage(txSample *bf, int x, int y, float frac)
 {
     int i = 0, w, r, ix, iy;
     uint32_t *buf = NULL;
--- a/gui/mplayer/gui_common.h	Wed Mar 09 14:15:14 2011 +0000
+++ b/gui/mplayer/gui_common.h	Wed Mar 09 15:36:10 2011 +0000
@@ -23,9 +23,6 @@
 
 #define DLABEL_DELAY 2500   // in milliseconds
 
-void PutImage(txSample *bf, int x, int y, int max, int ofs);
 void Render(wsTWindow *window, wItem *Items, int nrItems, char *db, int size);
-void SimplePotmeterPutImage(txSample *bf, int x, int y, float frac);
-char *Translate(char *str);
 
 #endif /* MPLAYER_GUI_GUI_COMMON_H */