Mercurial > vim
annotate src/proto/spell.pro @ 27195:005ebb9c8b8f v8.2.4126
patch 8.2.4126: crash on exit when built with dynamic Tcl
Commit: https://github.com/vim/vim/commit/afa76e1cf2e7e1f9e1097e345a4272e9ddbf14ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 17 21:34:38 2022 +0000
patch 8.2.4126: crash on exit when built with dynamic Tcl
Problem: Crash on exit when built with dynamic Tcl and EXITFREE is defined.
(Dominique Pell?)
Solution: Only call Tcl_Finalize() when initialized. (closes #9546)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Jan 2022 22:45:04 +0100 |
parents | 0082503ff2ff |
children | 087c42245022 |
rev | line source |
---|---|
224 | 1 /* spell.c */ |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
2 int spell_check(win_T *wp, char_u *ptr, hlf_T *attrp, int *capcol, int docount); |
18172
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
3 int match_checkcompoundpattern(char_u *ptr, int wlen, garray_T *gap); |
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
4 int can_compound(slang_T *slang, char_u *word, char_u *flags); |
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
5 int match_compoundrule(slang_T *slang, char_u *compflags); |
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
6 int valid_word_prefix(int totprefcnt, int arridx, int flags, char_u *word, slang_T *slang, int cond_req); |
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
7 int spell_valid_case(int wordflags, int treeflags); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
8 int spell_move_to(win_T *wp, int dir, int allwords, int curline, hlf_T *attrp); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
9 void spell_cat_line(char_u *buf, char_u *line, int maxlen); |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
10 char_u *spell_enc(void); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
11 slang_T *slang_alloc(char_u *lang); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
12 void slang_free(slang_T *lp); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
13 void slang_clear(slang_T *lp); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
14 void slang_clear_sug(slang_T *lp); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
15 void count_common_word(slang_T *lp, char_u *word, int len, int count); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
16 int byte_in_str(char_u *str, int n); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
17 int init_syl_tab(slang_T *slang); |
15470
55ccc2d353bd
patch 8.1.0743: giving error messages is not flexible
Bram Moolenaar <Bram@vim.org>
parents:
9583
diff
changeset
|
18 char *did_set_spelllang(win_T *wp); |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
19 int captype(char_u *word, char_u *end); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
20 void spell_delete_wordlist(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
21 void spell_free_all(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
22 void spell_reload(void); |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
23 buf_T *open_spellbuf(void); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
24 void close_spellbuf(buf_T *buf); |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
25 void clear_spell_chartab(spelltab_T *sp); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
26 void init_spell_chartab(void); |
18172
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
27 int spell_iswordp(char_u *p, win_T *wp); |
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
28 int spell_iswordp_nmw(char_u *p, win_T *wp); |
24872
59cfa23bd9eb
patch 8.2.2974: Greek spell checking uses wrong case folding
Bram Moolenaar <Bram@vim.org>
parents:
20760
diff
changeset
|
29 int spell_casefold(win_T *wp, char_u *str, int len, char_u *buf, int buflen); |
18172
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
30 int check_need_cap(linenr_T lnum, colnr_T col); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
31 void ex_spellrepall(exarg_T *eap); |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
32 void onecap_copy(char_u *word, char_u *wcopy, int upper); |
18172
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
33 void allcap_copy(char_u *word, char_u *wcopy); |
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
34 int nofold_len(char_u *fword, int flen, char_u *word); |
6e53d83e021d
patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17940
diff
changeset
|
35 void make_case_word(char_u *fword, char_u *cword, int flags); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
36 char_u *eval_soundfold(char_u *word); |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
37 void spell_soundfold(slang_T *slang, char_u *inword, int folded, char_u *res); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
38 void ex_spellinfo(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
39 void ex_spelldump(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
40 void spell_dump_compl(char_u *pat, int ic, int *dir, int dumpflags_arg); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
41 char_u *spell_to_word_end(char_u *start, win_T *win); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
42 int spell_word_start(int startcol); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
43 void spell_expand_check_cap(colnr_T col); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5519
diff
changeset
|
44 int expand_spelling(linenr_T lnum, char_u *pat, char_u ***matchp); |
20760
813b9a7064a4
patch 8.2.0932: missspelling spelllang
Bram Moolenaar <Bram@vim.org>
parents:
18172
diff
changeset
|
45 int valid_spelllang(char_u *val); |
17940
079e10a49ea1
patch 8.1.1966: some code in options.c fits better elsewhere
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
46 int valid_spellfile(char_u *val); |
079e10a49ea1
patch 8.1.1966: some code in options.c fits better elsewhere
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
47 char *did_set_spell_option(int is_spellfile); |
079e10a49ea1
patch 8.1.1966: some code in options.c fits better elsewhere
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
48 char *compile_cap_prog(synblock_T *synblock); |
224 | 49 /* vim: set ft=c : */ |