Lines Matching refs:cnt

320 static void set_spell_charflags(char_u *flags, int cnt, char_u *upp);
813 int cnt = 0; in read_cnt_string() local
827 cnt = (cnt << 8) + (unsigned)c; in read_cnt_string()
829 *cntp = cnt; in read_cnt_string()
830 if (cnt == 0) in read_cnt_string()
833 str = read_string(fd, cnt); in read_cnt_string()
901 int cnt; in read_prefcond_section() local
908 cnt = get2c(fd); // <prefcondcnt> in read_prefcond_section()
909 if (cnt <= 0) in read_prefcond_section()
912 lp->sl_prefprog = ALLOC_CLEAR_MULT(regprog_T *, cnt); in read_prefcond_section()
915 lp->sl_prefixcnt = cnt; in read_prefcond_section()
917 for (i = 0; i < cnt; ++i) in read_prefcond_section()
946 int cnt; in read_rep_section() local
950 cnt = get2c(fd); // <repcount> in read_rep_section()
951 if (cnt < 0) in read_rep_section()
954 if (ga_grow(gap, cnt) == FAIL) in read_rep_section()
958 for (; gap->ga_len < cnt; ++gap->ga_len) in read_rep_section()
996 int cnt; in read_sal_section() local
1012 cnt = get2c(fd); // <salcount> in read_sal_section()
1013 if (cnt < 0) in read_sal_section()
1018 if (ga_grow(gap, cnt + 1) == FAIL) in read_sal_section()
1022 for (; gap->ga_len < cnt; ++gap->ga_len) in read_sal_section()
1177 int cnt; in read_sofo_section() local
1184 from = read_cnt_string(fd, 2, &cnt); in read_sofo_section()
1185 if (cnt < 0) in read_sofo_section()
1186 return cnt; in read_sofo_section()
1189 to = read_cnt_string(fd, 2, &cnt); in read_sofo_section()
1190 if (cnt < 0) in read_sofo_section()
1193 return cnt; in read_sofo_section()
1225 int cnt; in read_compound() local
1269 read_cnt_string(fd, 1, &cnt); in read_compound()
1271 if (cnt < 0) in read_compound()
1272 return cnt; in read_compound()
1273 todo -= cnt + 1; in read_compound()
3749 int cnt = 0; in get_pfxlist() local
3767 store_afflist[cnt++] = id; in get_pfxlist()
3774 store_afflist[cnt] = NUL; in get_pfxlist()
3775 return cnt; in get_pfxlist()
3791 int cnt = 0; in get_compflags() local
3804 store_afflist[cnt++] = HI2CI(hi)->ci_newID; in get_compflags()
3810 store_afflist[cnt] = NUL; in get_compflags()
4640 int cnt = 0; in deref_wordnode() local
4647 cnt += deref_wordnode(spin, np->wn_child); in deref_wordnode()
4649 ++cnt; in deref_wordnode()
4651 ++cnt; // length field in deref_wordnode()
4653 return cnt; in deref_wordnode()
6506 int cnt, // length of "flags" in set_spell_charflags() argument
6520 if (i < cnt) in set_spell_charflags()