| /vim-8.2.3635/src/ |
| H A D | alloc.c | 673 to->ga_len = i; in ga_copy_strings() 680 to->ga_len = from->ga_len; in ga_copy_strings() 693 gap->ga_len = 0; in ga_init() 729 if (n < gap->ga_len / 2) in ga_grow_inner() 730 n = gap->ga_len / 2; in ga_grow_inner() 816 gap->ga_len += len; in ga_concat() 832 gap->ga_len += (int)len; in ga_concat_len() 845 ++gap->ga_len; in ga_append() 858 if (gap->ga_len > 0 in append_ga_line() 861 --gap->ga_len; in append_ga_line() [all …]
|
| H A D | vim9execute.c | 143 ++ectx->ec_stack.ga_len; in exe_newlist() 181 ++dict_stack.ga_len; in dict_stack_save() 223 --dict_stack.ga_len; in dict_stack_drop() 607 if (gap->ga_len == 0) in handle_closure_in_use() 777 ++ectx->ec_stack.ga_len; in call_prepare() 2011 ga.ga_len += len; in exec_instructions() 3483 --trystack->ga_len; in exec_instructions() 4740 idx = argc - ufunc->uf_args.ga_len + ufunc->uf_def_args.ga_len; in call_def_function() 4756 if (idx >= ufunc->uf_args.ga_len - ufunc->uf_def_args.ga_len in call_def_function() 4772 ++ectx.ec_stack.ga_len; in call_def_function() [all …]
|
| H A D | scriptfile.c | 38 ++exestack.ga_len; in estack_init() 61 ++exestack.ga_len; in estack_push() 108 --exestack.ga_len; in estack_pop() 179 ga.ga_len += (int)STRLEN((char *)ga.ga_data + ga.ga_len); in estack_sfile() 792 --gap->ga_len; in remove_duplicates() 886 if (ga.ga_len == 0) in ExpandRTDir() 938 if (ga.ga_len == 0) in ExpandPackAddDir() 1655 if (fgets((char *)buf + ga.ga_len, ga.ga_maxlen - ga.ga_len, in get_one_sourceline() 1658 len = ga.ga_len + (int)STRLEN(buf + ga.ga_len); in get_one_sourceline() 1672 ga.ga_len = len; in get_one_sourceline() [all …]
|
| H A D | vim9compile.c | 556 ++instr->ga_len; in generate_instr() 591 ++stack->ga_len; in generate_instr_type() 936 --stack->ga_len; in generate_COMPARE() 1323 ++stack->ga_len; in generate_GETITEM() 1759 --stack->ga_len; in generate_JUMP() 5329 *(((int *)end_ga.ga_data) + end_ga.ga_len) = instr->ga_len; in compile_and_or() 5390 --end_ga.ga_len; in compile_and_or() 5568 --stack->ga_len; in compile_expr1() 6239 --stack->ga_len; in generate_store_lhs() 8133 --instr->ga_len; in compile_for() [all …]
|
| H A D | blob.c | 73 int len = from->bv_ga.ga_len; in blob_copy() 82 to->vval.v_blob->bv_ga.ga_len = len; in blob_copy() 114 return b->bv_ga.ga_len; in blob_len() 148 if (idx < gap->ga_len in blob_set_append() 152 if (idx == gap->ga_len) in blob_set_append() 153 ++gap->ga_len; in blob_set_append() 195 blob->bv_ga.ga_len = st.st_size; in read_blob() 197 < (size_t)blob->bv_ga.ga_len) in read_blob() 210 < (size_t)blob->bv_ga.ga_len) in write_blob() 445 --b->bv_ga.ga_len; in blob_remove() [all …]
|
| H A D | fold.c | 643 if (gap->ga_len == 0) in foldCreate() 680 if (i < gap->ga_len) in foldCreate() 683 gap->ga_len = gap->ga_len + 1 - cont; in foldCreate() 1111 if (from->ga_len == 0 || ga_grow(to, from->ga_len) == FAIL) in cloneFoldGrowArray() 1124 ++to->ga_len; in cloneFoldGrowArray() 1435 --gap->ga_len; in deleteFoldEntry() 2870 if (gap->ga_len > 0 && i < gap->ga_len) in foldInsert() 2872 ++gap->ga_len; in foldInsert() 3210 if (gap2->ga_len > 0 && ga_grow(gap1, gap2->ga_len) == OK) in foldMerge() 3217 ++gap1->ga_len; in foldMerge() [all …]
|
| H A D | debugger.c | 680 bp = &DEBUGGY(gap, gap->ga_len); in ex_breakadd() 704 ++gap->ga_len; in ex_breakadd() 782 for (i = 0; i < gap->ga_len; ++i) in ex_breakdel() 799 bp = &DEBUGGY(gap, gap->ga_len); in ex_breakdel() 800 for (i = 0; i < gap->ga_len; ++i) in ex_breakdel() 821 while (gap->ga_len > 0) in ex_breakdel() 830 --gap->ga_len; in ex_breakdel() 831 if (todel < gap->ga_len) in ex_breakdel() 843 if (gap->ga_len == 0) in ex_breakdel() 859 if (dbg_breakp.ga_len == 0) in ex_breaklist() [all …]
|
| H A D | syntax.c | 838 if (current_state.ga_len) in syn_sync() 928 if (current_state.ga_len > 0) in syn_start_line() 1423 sp->sst_union.sst_ga.ga_len = current_state.ga_len; in store_current_state() 1862 if (current_state.ga_len) in syn_current_attr() 1905 if (current_state.ga_len > 1) in syn_current_attr() 2398 if (current_state.ga_len > 1) in push_next_match() 2755 ++current_state.ga_len; in push_current_state() 2765 if (current_state.ga_len) in pop_current_state() 2768 --current_state.ga_len; in pop_current_state() 6749 ++ga.ga_len; in syntime_report() [all …]
|
| H A D | spellsuggest.c | 2866 ++su->su_sga.ga_len; in score_comp_sal() 2947 if (ga_grow(&ga, su->su_ga.ga_len + su->su_sga.ga_len) == FAIL) in score_combine() 2951 for (i = 0; i < su->su_ga.ga_len || i < su->su_sga.ga_len; ++i) in score_combine() 2958 if (i < gap->ga_len) in score_combine() 2965 if (j == ga.ga_len) in score_combine() 3521 if (gap->ga_len == 0) in add_suggestion() 3585 ++gap->ga_len; in add_suggestion() 3633 --gap->ga_len; in check_suggestions() 3742 if (gap->ga_len > 0) in cleanup_suggestions() 3750 if (gap->ga_len > keep) in cleanup_suggestions() [all …]
|
| H A D | arglist.c | 43 while (--al->al_ga.ga_len >= 0) in alist_clear() 44 vim_free(AARGLIST(al)[al->al_ga.ga_len].ae_fname); in alist_clear() 205 AARGLIST(al)[al->al_ga.ga_len].ae_fnum = in alist_add() 207 ++al->al_ga.ga_len; in alist_add() 286 ((char_u **)gap->ga_data)[gap->ga_len++] = str; in get_arglist() 376 ALIST(curwin)->al_ga.ga_len += count; in alist_add_list() 432 for (i = 0; i < new_ga.ga_len && !got_int; ++i) in do_arglist() 454 --ALIST(curwin)->al_ga.ga_len; in do_arglist() 610 ++gap->ga_len; in ex_args() 843 ALIST(curwin)->al_ga.ga_len -= n; in ex_argdelete() [all …]
|
| H A D | highlight.c | 348 return highlight_ga.ga_len; in highlight_num_groups() 2471 for (i = 0; i < table->ga_len; ++i) in get_attr_entry() 2537 for (i = 0; i < highlight_ga.ga_len; ++i) in get_attr_entry() 2584 ++table->ga_len; in get_attr_entry() 3461 if (highlight_ga.ga_len >= MAX_HL_ID) in syn_add_group() 3490 ++highlight_ga.ga_len; in syn_add_group() 3502 --highlight_ga.ga_len; in syn_unadd_group() 3717 highlight_ga.ga_len = hlcnt + i + 1; in combine_stl_hlt() 3861 hlcnt = highlight_ga.ga_len; in highlight_changed() 3902 highlight_ga.ga_len = hlcnt; in highlight_changed() [all …]
|
| H A D | json.c | 239 if (b == NULL || b->bv_ga.ga_len == 0) in json_encode_item() 244 for (i = 0; i < b->bv_ga.ga_len; i++) in json_encode_item() 528 ga.ga_len += len; in json_decode_string() 617 if (stack.ga_len > 0) in json_decode_item() 634 --stack.ga_len; in json_decode_item() 635 if (stack.ga_len == 0) in json_decode_item() 693 + stack.ga_len; in json_decode_item() 695 ++stack.ga_len; in json_decode_item() 724 + stack.ga_len; in json_decode_item() 726 ++stack.ga_len; in json_decode_item() [all …]
|
| H A D | vim9script.c | 256 return ((imported_T *)gap->ga_data + gap->ga_len++); in new_imported() 311 for (idx = 0; idx < si->sn_imports.ga_len; ++idx) in free_imports_and_script_vars() 334 for (idx = 0; idx < si->sn_imports.ga_len; ++idx) in mark_imports_for_reload() 394 ++names.ga_len; in handle_import() 423 ((char_u **)as_names.ga_data)[as_names.ga_len] = as_name; in handle_import() 424 ++as_names.ga_len; in handle_import() 447 if (names.ga_len == 0) in handle_import() 561 for (i = 0; i < names.ga_len; ++i) in handle_import() 879 newsav->sav_var_vals_idx = si->sn_var_vals.ga_len; in update_vim9_script_var() 880 ++si->sn_var_vals.ga_len; in update_vim9_script_var() [all …]
|
| H A D | usercmd.c | 151 for (j = 0; j < gap->ga_len; ++j) in find_ucmd() 214 if (j < gap->ga_len || gap == &ucmds) in find_ucmd() 314 if (idx < buf->b_ucmds.ga_len) in get_user_commands() 316 idx -= buf->b_ucmds.ga_len; in get_user_commands() 317 if (idx < ucmds.ga_len) in get_user_commands() 341 if (idx < buf->b_ucmds.ga_len) in get_user_command_name() 431 for (i = 0; i < gap->ga_len; ++i) in uc_list() 976 ++gap->ga_len; in uc_add_command() 1183 for (i = 0; i < gap->ga_len; ++i) in ex_delcommand() 1209 --gap->ga_len; in ex_delcommand() [all …]
|
| H A D | spellfile.c | 771 ga.ga_len = 0; in suggest_load_files() 958 for (; gap->ga_len < cnt; ++gap->ga_len) in read_rep_section() 1022 for (; gap->ga_len < cnt; ++gap->ga_len) in read_sal_section() 1107 if (gap->ga_len > 0) in read_sal_section() 1127 ++gap->ga_len; in read_sal_section() 1430 gap->ga_len = 256; in set_sofo() 1527 while (i + 1 < gap->ga_len in set_sal_first() 3438 ++gap->ga_len; in add_fromto() 5008 if (gap->ga_len == 0) in write_vim_spell() 5119 l = spin->si_map.ga_len; in write_vim_spell() [all …]
|
| H A D | help.c | 1020 ((char_u **)ga.ga_data)[ga.ga_len] = s; in helptags_one() 1021 ++ga.ga_len; in helptags_one() 1105 ((char_u **)ga.ga_data)[ga.ga_len] = s; in helptags_one() 1106 ++ga.ga_len; in helptags_one() 1130 for (i = 1; i < ga.ga_len; ++i) in helptags_one() 1155 for (i = 0; i < ga.ga_len; ++i) in helptags_one() 1178 for (i = 0; i < ga.ga_len; ++i) in helptags_one() 1239 for (j = 0; j < ga.ga_len; j += 2) in do_helptags() 1242 if (j == ga.ga_len) in do_helptags() 1247 ((char_u *)ga.ga_data)[ga.ga_len++] = lang[0]; in do_helptags() [all …]
|
| H A D | digraph.c | 1836 : i < user_digraphs.ga_len; ++i) in get_digraph_for_char() 1914 for (i = 0; i < user_digraphs.ga_len; ++i) in getexactdigraph() 2006 for (i = 0; i < user_digraphs.ga_len; ++i) in registerdigraph() 2019 dp = (digr_T *)user_digraphs.ga_data + user_digraphs.ga_len; in registerdigraph() 2023 ++user_digraphs.ga_len; in registerdigraph() 2130 for (i = 0; i < user_digraphs.ga_len && !got_int; ++i) in listdigraphs() 2229 for (i = 0; i < user_digraphs.ga_len && !got_int; ++i) in digraph_getlist_common() 2669 ++curbuf->b_kmap_ga.ga_len; in ex_loadkeymap() 2677 for (i = 0; i < curbuf->b_kmap_ga.ga_len; ++i) in ex_loadkeymap() 2710 for (i = 0; i < curbuf->b_kmap_ga.ga_len; ++i) in keymap_unload() [all …]
|
| H A D | profiler.c | 532 int len = fp->uf_lines.ga_len; in func_do_profile() 664 if (fp->uf_profiling && lnum >= 1 && lnum <= fp->uf_lines.ga_len) in func_line_start() 771 for (i = 0; i < fp->uf_lines.ga_len; ++i) in func_dump_profile() 846 for (id = 1; id <= script_items.ga_len; ++id) in script_dump_profile() 891 if (i < si->sn_prl_ga.ga_len in script_dump_profile() 954 (int)(SOURCING_LNUM - si->sn_prl_ga.ga_len)); in script_line_start() 956 while (si->sn_prl_ga.ga_len <= si->sn_prl_idx in script_line_start() 957 && si->sn_prl_ga.ga_len < si->sn_prl_ga.ga_maxlen) in script_line_start() 960 pp = &PRL_ITEM(si, si->sn_prl_ga.ga_len); in script_line_start() 964 ++si->sn_prl_ga.ga_len; in script_line_start() [all …]
|
| H A D | userfunc.c | 122 newargs->ga_len++; in one_function_arg() 311 default_args->ga_len++; in get_function_args() 379 if (argtypes->ga_len > 0) in parse_argument_types() 416 --fp->uf_args.ga_len; in parse_argument_types() 826 + newlines->ga_len + 1; in get_function_body() 1370 if (default_args.ga_len > 0) in get_lambda_tv() 1762 funcargs.ga_len -= i; in get_func_tv() 2583 ai = i - fp->uf_args.ga_len; in call_user_func() 3370 fp->uf_args.ga_len); in call_func() 3474 if (j >= fp->uf_args.ga_len - fp->uf_def_args.ga_len) in list_func_head() [all …]
|
| H A D | if_xcmdsrv.c | 684 for (i = 0; i < serverReply.ga_len; i++, p++) in ServerReplyFind() 687 if (i >= serverReply.ga_len) in ServerReplyFind() 697 + serverReply.ga_len; in ServerReplyFind() 701 serverReply.ga_len++; in ServerReplyFind() 707 mch_memmove(p, p + 1, (serverReply.ga_len - i - 1) * sizeof(*p)); in ServerReplyFind() 708 serverReply.ga_len--; in ServerReplyFind() 798 if (len < p->strings.ga_len) in serverReadReply() 801 mch_memmove(s, s + len, p->strings.ga_len - len); in serverReadReply() 802 p->strings.ga_len -= len; in serverReadReply() 1321 reply.ga_len = 14 + STRLEN(p_enc) + STRLEN(serial); in server_parse_message() [all …]
|
| H A D | spell.c | 181 if (wp->w_s->b_langp.ga_len == 0) in spell_check() 1697 while (gap->ga_len > 0) in slang_clear() 1717 while (gap->ga_len > 0) in slang_clear() 2145 ++ga.ga_len; in did_set_spelllang() 2174 for (c = 0; c < ga.ga_len; ++c) in did_set_spelllang() 2181 if (c < ga.ga_len) in did_set_spelllang() 2231 ++ga.ga_len; in did_set_spelllang() 2244 for (i = 0; i < ga.ga_len; ++i) in did_set_spelllang() 2254 for (j = 0; j < ga.ga_len; ++j) in did_set_spelllang() 2272 for (j = 0; j < ga.ga_len; ++j) in did_set_spelllang() [all …]
|
| H A D | vim9type.c | 37 ((type_T **)type_gap->ga_data)[type_gap->ga_len] = type; in get_type_ptr() 38 ++type_gap->ga_len; in get_type_ptr() 46 while (gap->ga_len > 0) in clear_type_list() 47 vim_free(((type_T **)gap->ga_data)[--gap->ga_len]); in clear_type_list() 246 ((type_T **)type_gap->ga_data)[type_gap->ga_len] = in func_type_add_arg_types() 248 ++type_gap->ga_len; in func_type_add_arg_types() 1203 ga.ga_len += 5; in type_name() 1217 STRCPY((char *)ga.ga_data + ga.ga_len, ", "); in type_name() 1218 ga.ga_len += 2; in type_name() 1230 *((char *)ga.ga_data + ga.ga_len++) = '?'; in type_name() [all …]
|
| H A D | terminal.c | 1743 ++term->tl_scrollback.ga_len; in add_empty_scrollback() 1763 && gap->ga_len > 0) in cleanup_scrollback() 1768 --gap->ga_len; in cleanup_scrollback() 3183 gap->ga_len -= todo; in limit_scrollback() 3249 ga.ga_len = 0; in handle_pushline() 3269 text_len = ga.ga_len; in handle_pushline() 3290 ++gap->ga_len; in handle_pushline() 3335 ++term->tl_scrollback.ga_len; in handle_postponed_scrollback() 4963 ++gap->ga_len; in append_cell() 5034 ga_text.ga_len = 0; in read_dump_file() [all …]
|
| H A D | ui.c | 804 gap->ga_len = inbufcount; in get_input_buf() 824 if (overwrite || inbufcount + gap->ga_len >= INBUFLEN) in set_input_buf() 826 mch_memmove(inbuf, gap->ga_data, gap->ga_len); in set_input_buf() 827 inbufcount = gap->ga_len; in set_input_buf() 831 mch_memmove(inbuf + gap->ga_len, inbuf, inbufcount); in set_input_buf() 832 mch_memmove(inbuf, gap->ga_data, gap->ga_len); in set_input_buf() 833 inbufcount += gap->ga_len; in set_input_buf()
|
| H A D | macros.h | 375 # define ESTACK_CHECK_SETUP estack_len_before = exestack.ga_len; 376 # define ESTACK_CHECK_NOW if (estack_len_before != exestack.ga_len) \ 377 siemsg("Exestack length expected: %d, actual: %d", estack_len_before, exestack.ga_len); 391 #define GA_GROW_FAILS(gap, n) unlikely((((gap)->ga_maxlen - (gap)->ga_len < n) ? ga_grow_inner((gap… 393 #define GA_GROW_OK(gap, n) likely((((gap)->ga_maxlen - (gap)->ga_len < n) ? ga_grow_inner((gap), (n…
|