comparison mcabber/src/screen.c @ 1558:3df441efb7c2

Fix gcc warnings related to inline/static uses
author Mikael Berthe <mikael@lilotux.net>
date Fri, 10 Oct 2008 20:29:15 +0200
parents 5ef122b2bb75
children 2e86c1cc4eb1
comparison
equal deleted inserted replaced
1557:31422cb73356 1558:3df441efb7c2
153 153
154 void scr_WriteInWindow(const char *winId, const char *text, time_t timestamp, 154 void scr_WriteInWindow(const char *winId, const char *text, time_t timestamp,
155 unsigned int prefix_flags, int force_show, 155 unsigned int prefix_flags, int force_show,
156 unsigned mucnicklen); 156 unsigned mucnicklen);
157 157
158 inline void scr_WriteMessage(const char *bjid, const char *text,
159 time_t timestamp, guint prefix_flags,
160 unsigned mucnicklen);
158 inline void scr_UpdateBuddyWindow(void); 161 inline void scr_UpdateBuddyWindow(void);
159 inline void scr_set_chatmode(int enable); 162 inline void scr_set_chatmode(int enable);
160 163
161 #ifdef HAVE_ASPELL_H 164 #ifdef HAVE_ASPELL_H
162 #define ASPELLBADCHAR 5 165 #define ASPELLBADCHAR 5
2026 } 2029 }
2027 g_match_info_free(match_info); 2030 g_match_info_free(match_info);
2028 } 2031 }
2029 #endif 2032 #endif
2030 2033
2031 inline void scr_WriteMessage(const char *bjid, const char *text, 2034 void scr_WriteMessage(const char *bjid, const char *text,
2032 time_t timestamp, guint prefix_flags, 2035 time_t timestamp, guint prefix_flags,
2033 unsigned mucnicklen) 2036 unsigned mucnicklen)
2034 { 2037 {
2035 char *xtext; 2038 char *xtext;
2036 2039
2037 if (!timestamp) timestamp = time(NULL); 2040 if (!timestamp) timestamp = time(NULL);
2038 2041
2151 } 2154 }
2152 #endif 2155 #endif
2153 } 2156 }
2154 2157
2155 #if defined JEP0022 || defined JEP0085 2158 #if defined JEP0022 || defined JEP0085
2156 inline long int scr_GetChatStatesTimeout(time_t now) 2159 long int scr_GetChatStatesTimeout(time_t now)
2157 { 2160 {
2158 // Check if we're currently composing... 2161 // Check if we're currently composing...
2159 if (chatstate != 1 || !chatstate_timestamp) 2162 if (chatstate != 1 || !chatstate_timestamp)
2160 return 86400; 2163 return 86400;
2161 2164
2930 "Multi-line mode: line #%d added [%.25s...", num, line); 2933 "Multi-line mode: line #%d added [%.25s...", num, line);
2931 } 2934 }
2932 2935
2933 // scr_cmdhisto_addline() 2936 // scr_cmdhisto_addline()
2934 // Add a line to the inputLine history 2937 // Add a line to the inputLine history
2935 inline void scr_cmdhisto_addline(char *line) 2938 static inline void scr_cmdhisto_addline(char *line)
2936 { 2939 {
2937 int max_histo_lines; 2940 int max_histo_lines;
2938 2941
2939 if (!line || !*line) 2942 if (!line || !*line)
2940 return; 2943 return;