comparison src/proto/spell.pro @ 18172:6e53d83e021d v8.1.2081

patch 8.1.2081: the spell.c file is too big Commit: https://github.com/vim/vim/commit/46a426c9acfdd3d6c0fa134a17681634b9325bee Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 27 12:41:56 2019 +0200 patch 8.1.2081: the spell.c file is too big Problem: The spell.c file is too big. Solution: Move the code for spell suggestions to a separate file. (Yegappan Lakshmanan, closes #4988)
author Bram Moolenaar <Bram@vim.org>
date Fri, 27 Sep 2019 12:45:08 +0200
parents 079e10a49ea1
children 813b9a7064a4
comparison
equal deleted inserted replaced
18171:b6145168fb4b 18172:6e53d83e021d
1 /* spell.c */ 1 /* spell.c */
2 int spell_check(win_T *wp, char_u *ptr, hlf_T *attrp, int *capcol, int docount); 2 int spell_check(win_T *wp, char_u *ptr, hlf_T *attrp, int *capcol, int docount);
3 int match_checkcompoundpattern(char_u *ptr, int wlen, garray_T *gap);
4 int can_compound(slang_T *slang, char_u *word, char_u *flags);
5 int match_compoundrule(slang_T *slang, char_u *compflags);
6 int valid_word_prefix(int totprefcnt, int arridx, int flags, char_u *word, slang_T *slang, int cond_req);
7 int spell_valid_case(int wordflags, int treeflags);
8 int no_spell_checking(win_T *wp);
3 int spell_move_to(win_T *wp, int dir, int allwords, int curline, hlf_T *attrp); 9 int spell_move_to(win_T *wp, int dir, int allwords, int curline, hlf_T *attrp);
4 void spell_cat_line(char_u *buf, char_u *line, int maxlen); 10 void spell_cat_line(char_u *buf, char_u *line, int maxlen);
5 char_u *spell_enc(void); 11 char_u *spell_enc(void);
6 slang_T *slang_alloc(char_u *lang); 12 slang_T *slang_alloc(char_u *lang);
7 void slang_free(slang_T *lp); 13 void slang_free(slang_T *lp);
17 void spell_reload(void); 23 void spell_reload(void);
18 buf_T *open_spellbuf(void); 24 buf_T *open_spellbuf(void);
19 void close_spellbuf(buf_T *buf); 25 void close_spellbuf(buf_T *buf);
20 void clear_spell_chartab(spelltab_T *sp); 26 void clear_spell_chartab(spelltab_T *sp);
21 void init_spell_chartab(void); 27 void init_spell_chartab(void);
28 int spell_iswordp(char_u *p, win_T *wp);
29 int spell_iswordp_nmw(char_u *p, win_T *wp);
22 int spell_casefold(char_u *str, int len, char_u *buf, int buflen); 30 int spell_casefold(char_u *str, int len, char_u *buf, int buflen);
23 int spell_check_sps(void); 31 int check_need_cap(linenr_T lnum, colnr_T col);
24 void spell_suggest(int count);
25 void ex_spellrepall(exarg_T *eap); 32 void ex_spellrepall(exarg_T *eap);
26 void spell_suggest_list(garray_T *gap, char_u *word, int maxcount, int need_cap, int interactive);
27 void onecap_copy(char_u *word, char_u *wcopy, int upper); 33 void onecap_copy(char_u *word, char_u *wcopy, int upper);
34 void allcap_copy(char_u *word, char_u *wcopy);
35 int nofold_len(char_u *fword, int flen, char_u *word);
36 void make_case_word(char_u *fword, char_u *cword, int flags);
28 char_u *eval_soundfold(char_u *word); 37 char_u *eval_soundfold(char_u *word);
29 void spell_soundfold(slang_T *slang, char_u *inword, int folded, char_u *res); 38 void spell_soundfold(slang_T *slang, char_u *inword, int folded, char_u *res);
30 void ex_spellinfo(exarg_T *eap); 39 void ex_spellinfo(exarg_T *eap);
31 void ex_spelldump(exarg_T *eap); 40 void ex_spelldump(exarg_T *eap);
32 void spell_dump_compl(char_u *pat, int ic, int *dir, int dumpflags_arg); 41 void spell_dump_compl(char_u *pat, int ic, int *dir, int dumpflags_arg);