comparison src/digraph.c @ 25567:0082503ff2ff v8.2.3320

patch 8.2.3320: some local functions are not static Commit: https://github.com/vim/vim/commit/8ee52affe7fd4daa03e002bc06611f0a8c3bcd5b Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Aug 9 19:59:06 2021 +0200 patch 8.2.3320: some local functions are not static Problem: Some local functions are not static. Solution: Add "static". Move snprintf() related code to strings.c. (Yegappan Lakshmanan, closes #8734)
author Bram Moolenaar <Bram@vim.org>
date Mon, 09 Aug 2021 20:00:06 +0200
parents e8e2c4d33b9b
children ea0820d05257
comparison
equal deleted inserted replaced
25566:e1c7aa26ddf5 25567:0082503ff2ff
2027 /* 2027 /*
2028 * Check the characters are valid for a digraph. 2028 * Check the characters are valid for a digraph.
2029 * If they are valid, returns TRUE; otherwise, give an error message and 2029 * If they are valid, returns TRUE; otherwise, give an error message and
2030 * returns FALSE. 2030 * returns FALSE.
2031 */ 2031 */
2032 int 2032 static int
2033 check_digraph_chars_valid(int char1, int char2) 2033 check_digraph_chars_valid(int char1, int char2)
2034 { 2034 {
2035 if (char2 == 0) 2035 if (char2 == 0)
2036 { 2036 {
2037 char_u msg[MB_MAXBYTES + 1]; 2037 char_u msg[MB_MAXBYTES + 1];
2191 *p = NUL; 2191 *p = NUL;
2192 2192
2193 li2->li_tv.vval.v_string = vim_strsave(buf); 2193 li2->li_tv.vval.v_string = vim_strsave(buf);
2194 } 2194 }
2195 2195
2196 void 2196 static void
2197 digraph_getlist_common(int list_all, typval_T *rettv) 2197 digraph_getlist_common(int list_all, typval_T *rettv)
2198 { 2198 {
2199 int i; 2199 int i;
2200 digr_T *dp; 2200 digr_T *dp;
2201 2201