comparison mcabber/src/screen.c @ 1413:f89844a0448a

Remove useless inlines
author Mikael Berthe <mikael@lilotux.net>
date Sat, 19 Jan 2008 12:09:00 +0100
parents bba74a50dedf
children 366ef500c522
comparison
equal deleted inserted replaced
1412:0e1ef9597420 1413:f89844a0448a
143 143
144 void scr_WriteInWindow(const char *winId, const char *text, time_t timestamp, 144 void scr_WriteInWindow(const char *winId, const char *text, time_t timestamp,
145 unsigned int prefix_flags, int force_show, 145 unsigned int prefix_flags, int force_show,
146 unsigned mucnicklen); 146 unsigned mucnicklen);
147 147
148 inline void scr_UpdateBuddyWindow(void);
149 inline void scr_set_chatmode(int enable);
150
148 #ifdef HAVE_ASPELL_H 151 #ifdef HAVE_ASPELL_H
149 #define ASPELLBADCHAR 5 152 #define ASPELLBADCHAR 5
150 AspellConfig *spell_config; 153 AspellConfig *spell_config;
151 AspellSpeller *spell_checker; 154 AspellSpeller *spell_checker;
152 #endif 155 #endif
160 static GSList *rostercolrules = NULL; 163 static GSList *rostercolrules = NULL;
161 164
162 static GHashTable *muccolors = NULL, *nickcolors = NULL; 165 static GHashTable *muccolors = NULL, *nickcolors = NULL;
163 166
164 typedef struct { 167 typedef struct {
165 bool manual;//Manually set? 168 bool manual; // Manually set?
166 int color; 169 int color;
167 } nickcolor; 170 } nickcolor;
168 171
169 static int nickcolcount = 0, *nickcols = NULL; 172 static int nickcolcount = 0, *nickcols = NULL;
170 static muccoltype glob_muccol = MC_OFF; 173 static muccoltype glob_muccol = MC_OFF;
791 endwin(); 794 endwin();
792 Curses = FALSE; 795 Curses = FALSE;
793 return; 796 return;
794 } 797 }
795 798
796 inline void scr_Beep(void) 799 void scr_Beep(void)
797 { 800 {
798 beep(); 801 beep();
799 } 802 }
800 803
801 // This and following belongs to dynamic setting of time prefix 804 // This and following belongs to dynamic setting of time prefix
2731 2734
2732 // scr_set_multimode() 2735 // scr_set_multimode()
2733 // Public function to (un)set multimode... 2736 // Public function to (un)set multimode...
2734 // Convention: 2737 // Convention:
2735 // 0 = disabled / 1 = multimode / 2 = multimode verbatim (commands disabled) 2738 // 0 = disabled / 1 = multimode / 2 = multimode verbatim (commands disabled)
2736 inline void scr_set_multimode(int enable, char *subject) 2739 void scr_set_multimode(int enable, char *subject)
2737 { 2740 {
2738 g_free(multiline); 2741 g_free(multiline);
2739 multiline = NULL; 2742 multiline = NULL;
2740 2743
2741 g_free(multimode_subj); 2744 g_free(multimode_subj);
2747 multimode = enable; 2750 multimode = enable;
2748 } 2751 }
2749 2752
2750 // scr_get_multiline() 2753 // scr_get_multiline()
2751 // Public function to get the current multi-line. 2754 // Public function to get the current multi-line.
2752 inline const char *scr_get_multiline(void) 2755 const char *scr_get_multiline(void)
2753 { 2756 {
2754 if (multimode && multiline) 2757 if (multimode && multiline)
2755 return multiline; 2758 return multiline;
2756 return NULL; 2759 return NULL;
2757 } 2760 }
2758 2761
2759 // scr_get_multimode_subj() 2762 // scr_get_multimode_subj()
2760 // Public function to get the multi-line subject, if any. 2763 // Public function to get the multi-line subject, if any.
2761 inline const char *scr_get_multimode_subj(void) 2764 const char *scr_get_multimode_subj(void)
2762 { 2765 {
2763 if (multimode) 2766 if (multimode)
2764 return multimode_subj; 2767 return multimode_subj;
2765 return NULL; 2768 return NULL;
2766 } 2769 }
3106 3109
3107 void readline_do_completion(void) 3110 void readline_do_completion(void)
3108 { 3111 {
3109 int i, n; 3112 int i, n;
3110 3113
3111 if (scr_get_multimode() != 2) { 3114 if (multimode != 2) {
3112 // Not in verbatim multi-line mode 3115 // Not in verbatim multi-line mode
3113 scr_handle_tab(); 3116 scr_handle_tab();
3114 } else { 3117 } else {
3115 // Verbatim multi-line mode: expand tab 3118 // Verbatim multi-line mode: expand tab
3116 char tabstr[9]; 3119 char tabstr[9];
3230 } 3233 }
3231 3234
3232 void readline_send_multiline(void) 3235 void readline_send_multiline(void)
3233 { 3236 {
3234 // Validate current multi-line 3237 // Validate current multi-line
3235 if (scr_get_multimode()) 3238 if (multimode)
3236 process_command(mkcmdstr("msay send"), TRUE); 3239 process_command(mkcmdstr("msay send"), TRUE);
3237 } 3240 }
3238 3241
3239 // which_row() 3242 // which_row()
3240 // Tells which row our cursor is in, in the command line. 3243 // Tells which row our cursor is in, in the command line.
3674 ungetch(ks[i]); 3677 ungetch(ks[i]);
3675 } 3678 }
3676 return; 3679 return;
3677 } 3680 }
3678 3681
3679 inline void scr_DoUpdate(void) 3682 void scr_DoUpdate(void)
3680 { 3683 {
3681 doupdate(); 3684 doupdate();
3682 } 3685 }
3683 3686
3684 static int bindcommand(keycode kcode) 3687 static int bindcommand(keycode kcode)