Lines Matching refs:flags
320 static void set_spell_charflags(char_u *flags, int cnt, char_u *upp);
864 char_u *flags; in read_charflags_section() local
869 flags = read_cnt_string(fd, 1, &flagslen); in read_charflags_section()
877 vim_free(flags); in read_charflags_section()
882 if (flags != NULL && fol != NULL) in read_charflags_section()
883 set_spell_charflags(flags, flagslen, fol); in read_charflags_section()
885 vim_free(flags); in read_charflags_section()
889 if ((flags == NULL) != (fol == NULL)) in read_charflags_section()
2001 …fflist, afffile_T *affile, hashtab_T *ht, hashtab_T *xht, int condit, int flags, char_u *pfxlist, …
2004 static int store_word(spellinfo_T *spin, char_u *word, int flags, int region, char_u *pfxlist, int …
2005 static int tree_add_word(spellinfo_T *spin, char_u *word, wordnode_T *tree, int flags, int region, …
3513 int flags; in spell_read_dic() local
3647 flags = 0; in spell_read_dic()
3654 flags |= get_affix_flags(affile, afflist); in spell_read_dic()
3671 if (store_word(spin, dw, flags, spin->si_region, in spell_read_dic()
3681 CONDIT_SUF, flags, store_afflist, pfxlen) == FAIL) in spell_read_dic()
3687 CONDIT_SUF, flags, store_afflist, pfxlen) == FAIL) in spell_read_dic()
3712 int flags = 0; in get_affix_flags() local
3716 flags |= WF_KEEPCAP | WF_FIXCAP; in get_affix_flags()
3719 flags |= WF_RARE; in get_affix_flags()
3722 flags |= WF_BANNED; in get_affix_flags()
3725 flags |= WF_NEEDCOMP; in get_affix_flags()
3728 flags |= WF_COMPROOT; in get_affix_flags()
3731 flags |= WF_NOSUGGEST; in get_affix_flags()
3732 return flags; in get_affix_flags()
3831 int flags, // flags for the word in store_aff_word() argument
3934 use_flags = flags; in store_aff_word()
4098 int flags; in spell_read_wordfile() local
4210 flags = 0; in spell_read_wordfile()
4221 flags |= WF_KEEPCAP | WF_FIXCAP; in spell_read_wordfile()
4223 flags |= WF_BANNED; in spell_read_wordfile()
4225 flags |= WF_RARE; in spell_read_wordfile()
4228 if ((flags & WF_REGION) == 0) // first one in spell_read_wordfile()
4230 flags |= WF_REGION; in spell_read_wordfile()
4259 if (store_word(spin, line, flags, regionmask, NULL, FALSE) == FAIL) in spell_read_wordfile()
4385 int flags, // extra flags, WF_BANNED in store_word() argument
4400 res = tree_add_word(spin, foldword, spin->si_foldroot, ct | flags, in store_word()
4407 if (res == OK && (ct == WF_KEEPCAP || (flags & WF_KEEPCAP))) in store_word()
4412 res = tree_add_word(spin, word, spin->si_keeproot, flags, in store_word()
4433 int flags, in tree_add_word() argument
4489 && (flags < 0 in tree_add_word()
4491 : (node->wn_flags < (unsigned)(flags & WN_MASK) in tree_add_word()
4492 || (node->wn_flags == (flags & WN_MASK) in tree_add_word()
4504 && (flags < 0 in tree_add_word()
4506 || node->wn_flags != (flags & WN_MASK) in tree_add_word()
4534 node->wn_flags = flags; in tree_add_word()
4931 int flags; in write_vim_spell() local
4950 flags = 0; in write_vim_spell()
4952 flags |= CF_WORD; in write_vim_spell()
4954 flags |= CF_UPPER; in write_vim_spell()
4955 fputc(flags, fd); // <charflags> in write_vim_spell()
5312 int flags; in put_node() local
5356 flags = np->wn_flags; in put_node()
5358 flags |= WF_REGION; in put_node()
5360 flags |= WF_AFX; in put_node()
5361 if (flags == 0) in put_node()
5371 putc(flags, fd); // <flags> in put_node()
5372 putc((unsigned)flags >> 8, fd); // <flags2> in put_node()
5377 putc(flags, fd); // <flags> in put_node()
5379 if (flags & WF_REGION) in put_node()
5381 if (flags & WF_AFX) in put_node()
6505 char_u *flags, in set_spell_charflags() argument
6522 new_st.st_isw[i + 128] = (flags[i] & CF_WORD) != 0; in set_spell_charflags()
6523 new_st.st_isu[i + 128] = (flags[i] & CF_UPPER) != 0; in set_spell_charflags()