Home
last modified time | relevance | path

Searched refs:ht (Results 1 – 25 of 45) sorted by relevance

12

/vim-8.2.3635/src/
H A Dhashtab.c57 return ht;
69 ht->ht_array = ht->ht_smallarray; in hash_init()
80 if (ht->ht_array != ht->ht_smallarray) in hash_clear()
171 hi = &ht->ht_array[idx & ht->ht_mask]; in hash_lookup()
235 if (ht->ht_error && hash_may_resize(ht, 0) == FAIL) in hash_add_item()
340 if (ht->ht_used > ht->ht_filled) in hash_may_resize()
342 if (ht->ht_filled >= ht->ht_mask + 1) in hash_may_resize()
351 && ht->ht_array == ht->ht_smallarray) in hash_may_resize()
410 if (ht->ht_filled < ht->ht_mask) in hash_may_resize()
448 if (ht->ht_array != ht->ht_smallarray) in hash_may_resize()
[all …]
H A Dmemfile_test.c34 mf_hashtab_T ht; in test_mf_hash() local
40 mf_hash_init(&ht); in test_mf_hash()
45 assert(ht.mht_count == i); in test_mf_hash()
48 num_buckets = ht.mht_mask + 1; in test_mf_hash()
58 assert(ht.mht_buckets == ht.mht_small_buckets); in test_mf_hash()
63 assert(ht.mht_buckets != ht.mht_small_buckets); in test_mf_hash()
73 mf_hash_add_item(&ht, item); in test_mf_hash()
89 item = mf_hash_find(&ht, key); in test_mf_hash()
104 mf_hash_rem_item(&ht, item); in test_mf_hash()
121 item = mf_hash_find(&ht, key); in test_mf_hash()
[all …]
H A Devalvars.c2074 ht = in get_user_var_name()
2092 ht = in get_user_var_name()
2593 ht = NULL; in eval_variable()
2672 if (ht != NULL && ht == get_script_local_ht() in eval_variable()
2758 *htp = ht; in find_var()
2774 if (ht != NULL) in find_var()
2780 *htp = ht; in find_var()
2954 if (ht != NULL) in find_var_ht()
2963 return ht; in find_var_ht()
2996 return ht; in find_var_ht()
[all …]
H A Dtextprop.c61 hashtab_T *ht; in find_prop_hi() local
67 ht = global_proptypes; in find_prop_hi()
69 ht = buf->b_proptypes; in find_prop_hi()
71 if (ht == NULL) in find_prop_hi()
73 hi = hash_find(ht, name); in find_prop_hi()
577 if (ht == NULL) in find_type_by_id()
1262 hashtab_T *ht; in f_prop_type_delete() local
1269 hash_remove(ht, hi); in f_prop_type_delete()
1380 if (ht == NULL) in clear_ht_prop_types()
1395 hash_clear(ht); in clear_ht_prop_types()
[all …]
H A Dvim9script.c90 hashtab_T *ht = &SCRIPT_VARS(sid); in ex_vim9script() local
94 hashtab_free_contents(ht); in ex_vim9script()
95 hash_init(ht); in ex_vim9script()
267 hashtab_T *ht = &si->sn_all_vars.dv_hashtab; in free_all_script_vars() local
272 hash_lock(ht); in free_all_script_vars()
273 todo = (int)ht->ht_used; in free_all_script_vars()
274 for (hi = ht->ht_array; todo > 0; ++hi) in free_all_script_vars()
293 hash_clear(ht); in free_all_script_vars()
294 hash_init(ht); in free_all_script_vars()
H A Dsyntax.c3247 hashtab_T *ht; in check_keyword_id() local
3280 if (ht->ht_used == 0) in check_keyword_id()
4255 hashtab_T *ht, in syn_list_keywords() argument
4274 todo = (int)ht->ht_used; in syn_list_keywords()
4359 hash_lock(ht); in syn_clear_keyword()
4360 todo = (int)ht->ht_used; in syn_clear_keyword()
4375 hash_remove(ht, hi); in syn_clear_keyword()
4394 hash_unlock(ht); in syn_clear_keyword()
4423 hash_clear(ht); in clear_keywtab()
4424 hash_init(ht); in clear_keywtab()
[all …]
H A Dspellfile.c3457 hashtab_T *ht; in spell_free_aff() local
3466 for (ht = &aff->af_pref; ; ht = &aff->af_suff) in spell_free_aff()
3468 todo = (int)ht->ht_used; in spell_free_aff()
3495 hashtab_T ht; in spell_read_dic() local
3528 hash_init(&ht); in spell_read_dic()
3699 hash_clear(&ht); in spell_read_dic()
3828 hashtab_T *ht, in store_aff_word() argument
4674 hashtab_T ht; in wordtree_compress() local
4683 hash_init(&ht); in wordtree_compress()
4704 hash_clear(&ht); in wordtree_compress()
[all …]
H A Ddict.c119 hashtab_free_contents(hashtab_T *ht) in hashtab_free_contents() argument
126 hash_lock(ht); in hashtab_free_contents()
127 todo = (int)ht->ht_used; in hashtab_free_contents()
128 for (hi = ht->ht_array; todo > 0; ++hi) in hashtab_free_contents()
135 hash_remove(ht, hi); in hashtab_free_contents()
142 hash_clear(ht); in hashtab_free_contents()
H A Duserfunc.c1559 hashtab_T *ht; in deref_func_name() local
4229 hashtab_T *ht; in define_function() local
4231 v = find_var(name, &ht, TRUE); in define_function()
5559 hashtab_T *ht; in find_hi_in_scoped_ht() local
5570 ht = find_var_ht(name, &varname); in find_hi_in_scoped_ht()
5571 if (ht != NULL && *varname != NUL) in find_hi_in_scoped_ht()
5573 hi = hash_find(ht, varname); in find_hi_in_scoped_ht()
5576 *pht = ht; in find_hi_in_scoped_ht()
5597 hashtab_T *ht; in find_var_in_scoped_ht() local
5607 ht = find_var_ht(name, &varname); in find_var_in_scoped_ht()
[all …]
H A Dvim9execute.c2095 hashtab_T *ht = &SCRIPT_VARS( in exec_instructions() local
2123 hashtab_T *ht = NULL; in exec_instructions() local
2129 ht = get_globvar_ht(); in exec_instructions()
2133 ht = &curbuf->b_vars->dv_hashtab; in exec_instructions()
2137 ht = &curwin->w_vars->dv_hashtab; in exec_instructions()
2141 ht = &curtab->tp_vars->dv_hashtab; in exec_instructions()
2266 hashtab_T *ht = &SCRIPT_VARS( in exec_instructions() local
2379 hashtab_T *ht; in exec_instructions() local
2385 ht = get_globvar_ht(); in exec_instructions()
2388 ht = &curbuf->b_vars->dv_hashtab; in exec_instructions()
[all …]
H A Dscriptfile.c1301 hashtab_T *ht; in do_source() local
1313 ht = &SCRIPT_VARS(sid); in do_source()
1314 todo = (int)ht->ht_used; in do_source()
1315 for (hi = ht->ht_array; todo > 0; ++hi) in do_source()
H A Dlist.c2264 hashtab_T *ht; in filter_map() local
2369 ht = &d->dv_hashtab; in filter_map()
2370 hash_lock(ht); in filter_map()
2371 todo = (int)ht->ht_used; in filter_map()
2372 for (hi = ht->ht_array; todo > 0; ++hi) in filter_map()
2429 hash_unlock(ht); in filter_map()
H A Dif_py_both.h812 hashtab_T *ht; in VimToPython() local
819 ht = &our_tv->vval.v_dict->dv_hashtab; in VimToPython()
830 todo = ht->ht_used; in VimToPython()
831 for (hi = ht->ht_array; todo > 0; ++hi) in VimToPython()
1842 hashtab_T *ht; in DictionaryIter() local
1850 ht = &self->dict->dv_hashtab; in DictionaryIter()
1851 dii->dii_changed = ht->ht_changed; in DictionaryIter()
1852 dii->dii_ht = ht; in DictionaryIter()
1853 dii->dii_hi = ht->ht_array; in DictionaryIter()
1854 dii->dii_todo = ht->ht_used; in DictionaryIter()
H A Dif_ruby.c1213 hashtab_T *ht = &tv->vval.v_dict->dv_hashtab; in vim_to_ruby() local
1214 long_u todo = ht->ht_used; in vim_to_ruby()
1218 for (hi = ht->ht_array; todo > 0; ++hi) in vim_to_ruby()
H A Deval.c834 hashtab_T *ht = NULL; in get_lval() local
926 v = find_var(lp->ll_name, writing ? &ht : NULL, in get_lval()
982 && ht != NULL && ht == get_script_local_ht()) in get_lval()
4630 set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack) in set_ref_in_ht() argument
4639 cur_ht = ht; in set_ref_in_ht()
4661 cur_ht = ht_stack->ht; in set_ref_in_ht()
4774 newitem->ht = &dd->dv_hashtab; in set_ref_in_item()
/vim-8.2.3635/src/proto/
H A Dhashtab.pro2 void hash_init(hashtab_T *ht);
3 void hash_clear(hashtab_T *ht);
4 void hash_clear_all(hashtab_T *ht, int off);
5 hashitem_T *hash_find(hashtab_T *ht, char_u *key);
6 hashitem_T *hash_lookup(hashtab_T *ht, char_u *key, hash_T hash);
8 int hash_add(hashtab_T *ht, char_u *key);
9 int hash_add_item(hashtab_T *ht, hashitem_T *hi, char_u *key, hash_T hash);
10 void hash_remove(hashtab_T *ht, hashitem_T *hi);
11 void hash_lock(hashtab_T *ht);
12 void hash_lock_size(hashtab_T *ht, int size);
[all …]
H A Devalvars.pro22 void list_hashtable_vars(hashtab_T *ht, char *prefix, int empty, int *first);
62 dictitem_T *find_var_in_ht(hashtab_T *ht, int htname, char_u *varname, int no_autoload);
70 void vars_clear(hashtab_T *ht);
71 void vars_clear_ext(hashtab_T *ht, int free_val);
72 void delete_var(hashtab_T *ht, hashitem_T *hi);
H A Ddict.pro8 void hashtab_free_contents(hashtab_T *ht);
H A Duserfunc.pro71 dict_T *get_current_funccal_dict(hashtab_T *ht);
H A Deval.pro51 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack);
/vim-8.2.3635/runtime/spell/en/
H A Den_GB.diff137 + # When soundfolding "th" is turned into "@". When this is mistyped as "ht" it
138 + # soundfolds to "ht". This difference is too big, thus use REP items to lower
141 + REPSAL ht @
142 + REPSAL @ ht
H A Den_CA.diff160 ! # When soundfolding "th" is turned into "@". When this is mistyped as "ht" it
161 ! # soundfolds to "ht". This difference is too big, thus use REP items to lower
164 ! REPSAL ht @
165 ! REPSAL @ ht
H A Den_US.diff158 ! # When soundfolding "th" is turned into "@". When this is mistyped as "ht" it
159 ! # soundfolds to "ht". This difference is too big, thus use REP items to lower
162 ! REPSAL ht @
163 ! REPSAL @ ht
/vim-8.2.3635/src/testdir/
H A Dtest_cscope.vim61 call assert_match('\n(1 of 42): <<mf_hash_init>> mf_hash_init(&ht);', a)
62 call assert_equal(' mf_hash_init(&ht);', getline('.'))
137 call assert_equal(' item = mf_hash_find(&ht, key);', getline('.'))
139 call assert_equal(' item = mf_hash_find(&ht, key);', getline('.'))
141 call assert_equal(' item = mf_hash_find(&ht, key);', getline('.'))
/vim-8.2.3635/runtime/syntax/
H A Dterminfo.vim67 \ ht docr tsl tone uc hu u0 u1 u2 u3 u4 u5 u6

12