comparison mcabber/src/screen.c @ 1059:875d2c9d399c

Code cleanup Fix some prototypes.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 30 Nov 2006 20:48:01 +0100
parents c0d44a9a99bc
children 2a3cfb98bd5e
comparison
equal deleted inserted replaced
1058:c0d44a9a99bc 1059:875d2c9d399c
964 964
965 // scr_Resize() 965 // scr_Resize()
966 // Function called when the window is resized. 966 // Function called when the window is resized.
967 // - Resize windows 967 // - Resize windows
968 // - Rewrap lines in each buddy buffer 968 // - Rewrap lines in each buddy buffer
969 void scr_Resize() 969 void scr_Resize(void)
970 { 970 {
971 int x, y, lines, cols; 971 int x, y, lines, cols;
972 GSList *wblp; 972 GSList *wblp;
973 winbuf *wbp; 973 winbuf *wbp;
974 974
1921 scr_UpdateChatStatus(TRUE); 1921 scr_UpdateChatStatus(TRUE);
1922 } 1922 }
1923 1923
1924 // scr_get_multimode() 1924 // scr_get_multimode()
1925 // Public function to get multimode status... 1925 // Public function to get multimode status...
1926 inline int scr_get_multimode() 1926 inline int scr_get_multimode(void)
1927 { 1927 {
1928 return multimode; 1928 return multimode;
1929 } 1929 }
1930 1930
1931 // scr_setmsgflag_if_needed(jid) 1931 // scr_setmsgflag_if_needed(jid)
2093 2093
2094 // readline_transpose_chars() 2094 // readline_transpose_chars()
2095 // Drag the character before point forward over the character at 2095 // Drag the character before point forward over the character at
2096 // point, moving point forward as well. If point is at the end of 2096 // point, moving point forward as well. If point is at the end of
2097 // the line, then this transposes the two characters before point. 2097 // the line, then this transposes the two characters before point.
2098 void readline_transpose_chars() 2098 void readline_transpose_chars(void)
2099 { 2099 {
2100 char *c1, *c2; 2100 char *c1, *c2;
2101 unsigned a, b; 2101 unsigned a, b;
2102 2102
2103 if (ptr_inputline == inputLine) return; 2103 if (ptr_inputline == inputLine) return;
2122 } 2122 }
2123 } 2123 }
2124 2124
2125 // readline_backward_kill_word() 2125 // readline_backward_kill_word()
2126 // Kill the word before the cursor, in input line 2126 // Kill the word before the cursor, in input line
2127 void readline_backward_kill_word() 2127 void readline_backward_kill_word(void)
2128 { 2128 {
2129 char *c, *old = ptr_inputline; 2129 char *c, *old = ptr_inputline;
2130 int spaceallowed = 1; 2130 int spaceallowed = 1;
2131 2131
2132 if (ptr_inputline == inputLine) return; 2132 if (ptr_inputline == inputLine) return;
2153 check_offset(-1); 2153 check_offset(-1);
2154 } 2154 }
2155 2155
2156 // readline_backward_word() 2156 // readline_backward_word()
2157 // Move back to the start of the current or previous word 2157 // Move back to the start of the current or previous word
2158 void readline_backward_word() 2158 void readline_backward_word(void)
2159 { 2159 {
2160 char *old_ptr_inputLine = ptr_inputline; 2160 char *old_ptr_inputLine = ptr_inputline;
2161 int spaceallowed = 1; 2161 int spaceallowed = 1;
2162 2162
2163 if (ptr_inputline == inputLine) return; 2163 if (ptr_inputline == inputLine) return;
2180 check_offset(-1); 2180 check_offset(-1);
2181 } 2181 }
2182 2182
2183 // readline_forward_word() 2183 // readline_forward_word()
2184 // Move forward to the end of the next word 2184 // Move forward to the end of the next word
2185 void readline_forward_word() 2185 void readline_forward_word(void)
2186 { 2186 {
2187 int spaceallowed = 1; 2187 int spaceallowed = 1;
2188 2188
2189 while (*ptr_inputline) { 2189 while (*ptr_inputline) {
2190 ptr_inputline = next_char(ptr_inputline); 2190 ptr_inputline = next_char(ptr_inputline);