summaryrefslogtreecommitdiff
path: root/src/proto/spell.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-27 12:41:56 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-27 12:41:56 +0200
commit46a426c9acfdd3d6c0fa134a17681634b9325bee (patch)
tree04524eaade951e753e388a890c287a4373683fb0 /src/proto/spell.pro
parentd2842ea60bd608b7f9ec93c77d3f36a8e3bf5fe9 (diff)
downloadvim-git-46a426c9acfdd3d6c0fa134a17681634b9325bee.tar.gz
patch 8.1.2081: the spell.c file is too bigv8.1.2081
Problem: The spell.c file is too big. Solution: Move the code for spell suggestions to a separate file. (Yegappan Lakshmanan, closes #4988)
Diffstat (limited to 'src/proto/spell.pro')
-rw-r--r--src/proto/spell.pro15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/proto/spell.pro b/src/proto/spell.pro
index 611441258..461b5e10e 100644
--- a/src/proto/spell.pro
+++ b/src/proto/spell.pro
@@ -1,5 +1,11 @@
/* spell.c */
int spell_check(win_T *wp, char_u *ptr, hlf_T *attrp, int *capcol, int docount);
+int match_checkcompoundpattern(char_u *ptr, int wlen, garray_T *gap);
+int can_compound(slang_T *slang, char_u *word, char_u *flags);
+int match_compoundrule(slang_T *slang, char_u *compflags);
+int valid_word_prefix(int totprefcnt, int arridx, int flags, char_u *word, slang_T *slang, int cond_req);
+int spell_valid_case(int wordflags, int treeflags);
+int no_spell_checking(win_T *wp);
int spell_move_to(win_T *wp, int dir, int allwords, int curline, hlf_T *attrp);
void spell_cat_line(char_u *buf, char_u *line, int maxlen);
char_u *spell_enc(void);
@@ -19,12 +25,15 @@ buf_T *open_spellbuf(void);
void close_spellbuf(buf_T *buf);
void clear_spell_chartab(spelltab_T *sp);
void init_spell_chartab(void);
+int spell_iswordp(char_u *p, win_T *wp);
+int spell_iswordp_nmw(char_u *p, win_T *wp);
int spell_casefold(char_u *str, int len, char_u *buf, int buflen);
-int spell_check_sps(void);
-void spell_suggest(int count);
+int check_need_cap(linenr_T lnum, colnr_T col);
void ex_spellrepall(exarg_T *eap);
-void spell_suggest_list(garray_T *gap, char_u *word, int maxcount, int need_cap, int interactive);
void onecap_copy(char_u *word, char_u *wcopy, int upper);
+void allcap_copy(char_u *word, char_u *wcopy);
+int nofold_len(char_u *fword, int flen, char_u *word);
+void make_case_word(char_u *fword, char_u *cword, int flags);
char_u *eval_soundfold(char_u *word);
void spell_soundfold(slang_T *slang, char_u *inword, int folded, char_u *res);
void ex_spellinfo(exarg_T *eap);