1
0
forked from aniani/vim

patch 8.1.1891: functions used in one file are global

Problem:    Functions used in one file are global.
Solution:   Add "static". (Yegappan Lakshmanan, closes #4840)
This commit is contained in:
Bram Moolenaar
2019-08-20 20:13:45 +02:00
parent 9a4a8c4d59
commit 5843f5f37b
67 changed files with 162 additions and 178 deletions

View File

@@ -338,6 +338,7 @@ static int count_syllables(slang_T *slang, char_u *word);
static void clear_midword(win_T *buf);
static void use_midword(slang_T *lp, win_T *buf);
static int find_region(char_u *rp, char_u *region);
static int spell_iswordp_nmw(char_u *p, win_T *wp);
static int check_need_cap(linenr_T lnum, colnr_T col);
static void spell_find_suggest(char_u *badptr, int badlen, suginfo_T *su, int maxcount, int banbadword, int need_cap, int interactive);
#ifdef FEAT_EVAL
@@ -3052,7 +3053,7 @@ spell_iswordp(
* Return TRUE if "p" points to a word character.
* Unlike spell_iswordp() this doesn't check for "midword" characters.
*/
int
static int
spell_iswordp_nmw(char_u *p, win_T *wp)
{
int c;