changeset 33579:cd855f2f1024

win32 gui: Mark some functions as static.
author diego
date Sun, 19 Jun 2011 17:32:54 +0000
parents 8860c936e5ce
children c89456eb2ea4
files gui/win32/dialogs.c gui/win32/gui.c gui/win32/interface.c
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/dialogs.c	Sun Jun 19 16:52:51 2011 +0000
+++ b/gui/win32/dialogs.c	Sun Jun 19 17:32:54 2011 +0000
@@ -180,7 +180,7 @@
         guiLoadSubtitle(subtitlefile);
 }
 
-void display_loadplaylistwindow(gui_t *gui)
+static void display_loadplaylistwindow(gui_t *gui)
 {
     OPENFILENAME playlistopen;
     char playlistfile[MAX_PATH];
@@ -207,7 +207,7 @@
     }
 }
 
-void display_saveplaylistwindow(gui_t* gui)
+static void display_saveplaylistwindow(gui_t* gui)
 {
     OPENFILENAME playlistsave;
     static FILE *playlist_file = NULL;
--- a/gui/win32/gui.c	Sun Jun 19 16:52:51 2011 +0000
+++ b/gui/win32/gui.c	Sun Jun 19 17:32:54 2011 +0000
@@ -68,7 +68,7 @@
 static HBRUSH    colorbrush = NULL;           //Handle to colorkey brush
 static COLORREF windowcolor = RGB(255,0,255); //Windowcolor == colorkey
 
-void console_toggle(void)
+static void console_toggle(void)
 {
     if (console_state)
     {
--- a/gui/win32/interface.c	Sun Jun 19 16:52:51 2011 +0000
+++ b/gui/win32/interface.c	Sun Jun 19 17:32:54 2011 +0000
@@ -118,7 +118,7 @@
  * \brief this replaces a string starting with search by replace.
  * If not found, replace is appended.
  */
-void greplace(char ***list, char *search, char *replace)
+static void greplace(char ***list, char *search, char *replace)
 {
     int i = 0;
     int len = (search) ? strlen(search) : 0;
@@ -758,7 +758,7 @@
 }
 
 /* This function adds/inserts one file into the gui playlist */
-int import_file_into_gui(char *pathname, int insert)
+static int import_file_into_gui(char *pathname, int insert)
 {
     char filename[MAX_PATH];
     char *filepart = filename;
@@ -835,7 +835,7 @@
     return result;
 }
 
-inline void gtkMessageBox(int type, const char *str)
+static inline void gtkMessageBox(int type, const char *str)
 {
     if (type & GTK_MB_FATAL)
         MessageBox(NULL, str, "MPlayer GUI for Windows Error", MB_OK | MB_ICONERROR);