<<< Date Index >>>     <<< Thread Index >>>

[PATCH] make functions static



        * imap/utf7.c: include imap_private.h for function decls.
        * addrbook.c, browser.c, commands.c, compose.c: static linkage
        for a few locally-used functions.

Index: addrbook.c
===================================================================
RCS file: /home/roessler/cvs/mutt/addrbook.c,v
retrieving revision 3.6
diff -u -r3.6 addrbook.c
--- addrbook.c  19 Sep 2003 13:03:25 -0000      3.6
+++ addrbook.c  19 Nov 2004 09:54:39 -0000
@@ -74,12 +74,12 @@
   return (src);
 }
 
-void alias_entry (char *s, size_t slen, MUTTMENU *m, int num)
+static void alias_entry (char *s, size_t slen, MUTTMENU *m, int num)
 {
   mutt_FormatString (s, slen, NONULL (AliasFmt), alias_format_str, (unsigned 
long) ((ALIAS **) m->data)[num], M_FORMAT_ARROWCURSOR);
 }
 
-int alias_tag (MUTTMENU *menu, int n, int m)
+static int alias_tag (MUTTMENU *menu, int n, int m)
 {
   ALIAS *cur = ((ALIAS **) menu->data)[n];
   int ot = cur->tagged;
Index: browser.c
===================================================================
RCS file: /home/roessler/cvs/mutt/browser.c,v
retrieving revision 3.11
diff -u -r3.11 browser.c
--- browser.c   30 Oct 2004 21:59:00 -0000      3.11
+++ browser.c   19 Nov 2004 09:54:39 -0000
@@ -461,12 +461,12 @@
   return 0;
 }
 
-int select_file_search (MUTTMENU *menu, regex_t *re, int n)
+static int select_file_search (MUTTMENU *menu, regex_t *re, int n)
 {
   return (regexec (re, ((struct folder_file *) menu->data)[n].name, 0, NULL, 
0));
 }
 
-void folder_entry (char *s, size_t slen, MUTTMENU *menu, int num)
+static void folder_entry (char *s, size_t slen, MUTTMENU *menu, int num)
 {
   FOLDER folder;
 
@@ -511,7 +511,7 @@
   menu->redraw = REDRAW_FULL;
 }
 
-int file_tag (MUTTMENU *menu, int n, int m)
+static int file_tag (MUTTMENU *menu, int n, int m)
 {
   struct folder_file *ff = &(((struct folder_file *)menu->data)[n]);
   int ot;
Index: commands.c
===================================================================
RCS file: /home/roessler/cvs/mutt/commands.c,v
retrieving revision 3.26
diff -u -r3.26 commands.c
--- commands.c  30 Oct 2004 21:59:00 -0000      3.26
+++ commands.c  19 Nov 2004 09:54:39 -0000
@@ -323,7 +323,7 @@
   
 }
 
-void pipe_msg (HEADER *h, FILE *fp, int decode, int print)
+static void pipe_msg (HEADER *h, FILE *fp, int decode, int print)
 {
   int cmflags = 0;
   int chflags = CH_FROM;
Index: compose.c
===================================================================
RCS file: /home/roessler/cvs/mutt/compose.c,v
retrieving revision 3.19
diff -u -r3.19 compose.c
--- compose.c   30 Aug 2004 20:10:10 -0000      3.19
+++ compose.c   19 Nov 2004 09:54:39 -0000
@@ -402,7 +402,7 @@
 }
 
 /* prototype for use below */
-void compose_status_line (char *buf, size_t buflen, MUTTMENU *menu, 
+static void compose_status_line (char *buf, size_t buflen, MUTTMENU *menu, 
       const char *p);
 
 /*
@@ -468,7 +468,7 @@
   return (src);
 }
 
-void compose_status_line (char *buf, size_t buflen, MUTTMENU *menu, 
+static void compose_status_line (char *buf, size_t buflen, MUTTMENU *menu, 
       const char *p)
 {
   mutt_FormatString (buf, buflen, p, compose_format_str, 
Index: imap/utf7.c
===================================================================
RCS file: /home/roessler/cvs/mutt/imap/utf7.c,v
retrieving revision 3.3
diff -u -r3.3 utf7.c
--- imap/utf7.c 19 Sep 2003 13:05:13 -0000      3.3
+++ imap/utf7.c 19 Nov 2004 09:54:39 -0000
@@ -18,6 +18,7 @@
 
 #include "mutt.h"
 #include "charset.h"
+#include "imap_private.h"
 
 static int Index_64[128] = {
     -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,