comparison src/proto/spell.pro @ 9583:b0c7061d6439 v7.4.2069

commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 19 16:39:08 2016 +0200 patch 7.4.2069 Problem: spell.c is too big. Solution: Split it in spell file handling and spell checking.
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Jul 2016 16:45:06 +0200
parents 21b0a39d13ed
children 55ccc2d353bd
comparison
equal deleted inserted replaced
9582:96737caf272d 9583:b0c7061d6439
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 spell_move_to(win_T *wp, int dir, int allwords, int curline, hlf_T *attrp); 3 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); 4 void spell_cat_line(char_u *buf, char_u *line, int maxlen);
5 char_u *spell_enc(void);
6 slang_T *slang_alloc(char_u *lang);
7 void slang_free(slang_T *lp);
8 void slang_clear(slang_T *lp);
9 void slang_clear_sug(slang_T *lp);
10 void count_common_word(slang_T *lp, char_u *word, int len, int count);
11 int byte_in_str(char_u *str, int n);
12 int init_syl_tab(slang_T *slang);
5 char_u *did_set_spelllang(win_T *wp); 13 char_u *did_set_spelllang(win_T *wp);
14 int captype(char_u *word, char_u *end);
6 void spell_delete_wordlist(void); 15 void spell_delete_wordlist(void);
7 void spell_free_all(void); 16 void spell_free_all(void);
8 void spell_reload(void); 17 void spell_reload(void);
9 int spell_check_msm(void); 18 buf_T *open_spellbuf(void);
10 void ex_mkspell(exarg_T *eap); 19 void close_spellbuf(buf_T *buf);
11 void ex_spell(exarg_T *eap); 20 void clear_spell_chartab(spelltab_T *sp);
12 void spell_add_word(char_u *word, int len, int bad, int idx, int undo);
13 void init_spell_chartab(void); 21 void init_spell_chartab(void);
22 int spell_iswordp_nmw(char_u *p, win_T *wp);
23 int spell_casefold(char_u *str, int len, char_u *buf, int buflen);
14 int spell_check_sps(void); 24 int spell_check_sps(void);
15 void spell_suggest(int count); 25 void spell_suggest(int count);
16 void ex_spellrepall(exarg_T *eap); 26 void ex_spellrepall(exarg_T *eap);
17 void spell_suggest_list(garray_T *gap, char_u *word, int maxcount, int need_cap, int interactive); 27 void spell_suggest_list(garray_T *gap, char_u *word, int maxcount, int need_cap, int interactive);
28 void onecap_copy(char_u *word, char_u *wcopy, int upper);
18 char_u *eval_soundfold(char_u *word); 29 char_u *eval_soundfold(char_u *word);
30 void spell_soundfold(slang_T *slang, char_u *inword, int folded, char_u *res);
19 void ex_spellinfo(exarg_T *eap); 31 void ex_spellinfo(exarg_T *eap);
20 void ex_spelldump(exarg_T *eap); 32 void ex_spelldump(exarg_T *eap);
21 void spell_dump_compl(char_u *pat, int ic, int *dir, int dumpflags_arg); 33 void spell_dump_compl(char_u *pat, int ic, int *dir, int dumpflags_arg);
22 char_u *spell_to_word_end(char_u *start, win_T *win); 34 char_u *spell_to_word_end(char_u *start, win_T *win);
23 int spell_word_start(int startcol); 35 int spell_word_start(int startcol);