| /vim-8.2.3635/src/xdiff/ |
| H A D | xutils.c | 258 for (; ptr < top && *ptr != '\n'; ptr++) { in xdl_hash_record_with_whitespace() 262 (ptr + 1 < top && ptr[1] == '\n')) in xdl_hash_record_with_whitespace() 268 while (ptr + 1 < top && XDL_ISSPACE(ptr[1]) in xdl_hash_record_with_whitespace() 270 ptr++; in xdl_hash_record_with_whitespace() 271 at_eol = (top <= ptr + 1 || ptr[1] == '\n'); in xdl_hash_record_with_whitespace() 292 *data = ptr < top ? ptr + 1: ptr; in xdl_hash_record_with_whitespace() 304 for (; ptr < top && *ptr != '\n'; ptr++) { in xdl_hash_record() 308 *data = ptr < top ? ptr + 1: ptr; in xdl_hash_record() 326 *ptr = '\0'; in xdl_num_out() 333 if (*ptr) in xdl_num_out() [all …]
|
| H A D | xhistogram.c | 54 unsigned int ptr, cnt; member 82 #define NEXT_PTR(index, ptr) \ argument 85 #define CNT(index, ptr) \ argument 95 xdl_recmatch(r1->ptr, r1->size, r2->ptr, r2->size, in cmp_recs() 110 int ptr, tbl_idx; in scanA() local 114 for (ptr = LINE_END(1); line1 <= ptr; ptr--) { in scanA() 121 if (CMP(index, 1, rec->ptr, 1, ptr)) { in scanA() 127 NEXT_PTR(index, ptr) = rec->ptr; in scanA() 128 rec->ptr = ptr; in scanA() 148 rec->ptr = ptr; in scanA() [all …]
|
| H A D | xdiff.h | 71 char *ptr; member 76 char *ptr; member 129 #define xdl_free(ptr) vim_free(ptr) argument 130 #define xdl_realloc(ptr,x) vim_realloc((ptr),(x)) argument
|
| /vim-8.2.3635/src/ |
| H A D | termlib.c | 476 ptr=UP; in tgoto() 477 while (VIM_ISDIGIT(*ptr) || *ptr == '.') in tgoto() 478 ptr++; in tgoto() 480 ptr++; in tgoto() 487 ptr=BC; in tgoto() 488 while (VIM_ISDIGIT(*ptr) || *ptr == '.') in tgoto() 489 ptr++; in tgoto() 491 ptr++; in tgoto() 598 while (*ptr && *s != *ptr) in _find() 599 ptr++; in _find() [all …]
|
| H A D | undo.c | 199 u_check_tree(uhp->uh_alt_next.ptr, uhp->uh_next.ptr, uhp); in u_check_tree() 571 uhp->uh_alt_prev.ptr = old_curhead->uh_alt_prev.ptr; in u_savecommon() 573 uhp->uh_alt_prev.ptr->uh_alt_next.ptr = uhp; in u_savecommon() 1186 return ptr; in read_string_decrypt() 2605 last->uh_alt_next.ptr->uh_alt_prev.ptr = in undo_time() 2607 last->uh_alt_prev.ptr->uh_alt_next.ptr = in undo_time() 2617 uhp->uh_next.ptr->uh_prev.ptr = uhp; in undo_time() 3352 uhp->uh_alt_prev.ptr->uh_alt_next.ptr = NULL; in u_freeheader() 3358 uhp->uh_next.ptr->uh_prev.ptr = uhp->uh_prev.ptr; in u_freeheader() 3365 uhap->uh_next.ptr = uhp->uh_next.ptr; in u_freeheader() [all …]
|
| H A D | charset.c | 1829 ++ptr; in vim_str2nr() 1833 if (ptr[0] == '0' && ptr[1] != '8' && ptr[1] != '9' in vim_str2nr() 1880 while ('0' <= *ptr && *ptr <= '1') in vim_str2nr() 1887 ++ptr; in vim_str2nr() 1891 && '0' <= ptr[1] && ptr[1] <= '1') in vim_str2nr() 1893 ++ptr; in vim_str2nr() 1905 while ('0' <= *ptr && *ptr <= '7') in vim_str2nr() 1916 && '0' <= ptr[1] && ptr[1] <= '7') in vim_str2nr() 1918 ++ptr; in vim_str2nr() 1941 ++ptr; in vim_str2nr() [all …]
|
| H A D | findfile.c | 440 void *ptr; in vim_findfile_init() local 445 if (ptr) in vim_findfile_init() 1759 for (ptr = ff_file_to_find; *ptr != NUL; ++ptr) in find_file_in_path_option() 1760 if (ptr[0] == '\\' && ptr[1] == ' ') in find_file_in_path_option() 1761 mch_memmove(ptr, ptr + 1, STRLEN(ptr)); in find_file_in_path_option() 1945 char_u *ptr; in grab_file_name() local 2005 while (*ptr != NUL && !vim_isfilec(*ptr)) in file_name_in_line() 2024 --ptr; in file_name_in_line() 2034 while (vim_isfilec(ptr[len]) || (ptr[len] == '\\' && ptr[len + 1] == ' ') in file_name_in_line() 2040 if ((ptr[len] >= 'A' && ptr[len] <= 'Z') || (ptr[len] >= 'a' && ptr[len] <= 'z')) in file_name_in_line() [all …]
|
| H A D | fileio.c | 1486 mch_memmove(ptr, ptr + blen, (size_t)size); in readfile() 1630 dst = ptr; in readfile() 2088 for (p = ptr; p < ptr + size; ++p) in readfile() 2113 for (p = ptr; p < ptr + size; ++p) in readfile() 2150 --ptr; in readfile() 2191 --ptr; in readfile() 2206 if (ptr > line_start && ptr[-1] == CAR) in readfile() 2284 *ptr = NUL; in readfile() 3562 for (ptr = retval + fnamelen; ptr > retval; MB_PTR_BACK(retval, ptr)) in buf_modname() 3569 ++ptr; in buf_modname() [all …]
|
| H A D | insexpand.c | 1339 ptr = find_line_end(ptr); in ins_compl_files() 1341 ptr = find_word_end(ptr); in ins_compl_files() 1355 ptr = find_word_start(ptr); in ins_compl_files() 1374 ptr = find_word_end(ptr); in ins_compl_files() 1409 while (*ptr != NUL && *ptr != '\n' && mb_get_class(ptr) <= 1) in find_word_start() 1410 ptr += (*mb_ptr2len)(ptr); in find_word_start() 1412 while (*ptr != NUL && *ptr != '\n' && !vim_iswordc(*ptr)) in find_word_start() 1432 ptr += (*mb_ptr2len)(ptr); in find_word_end() 1452 s = ptr + STRLEN(ptr); in find_line_end() 3010 ptr += (*mb_ptr2len)(ptr); in ins_compl_get_exp() [all …]
|
| H A D | indent.c | 436 char_u *ptr, in get_indent_str() argument 442 for ( ; *ptr; ++ptr) in get_indent_str() 444 if (*ptr == TAB) in get_indent_str() 473 for ( ; *ptr; ++ptr) in get_indent_str_vtab() 1007 char_u *ptr; in inindent() local 1011 ++ptr; in inindent() 1135 char_u *ptr; in ins_try_si() local 1181 if (*ptr != '#' && *ptr != NUL) in ins_try_si() 1228 char_u *ptr; in change_indent() local 1331 ptr[i] = NUL; in change_indent() [all …]
|
| H A D | drawline.c | 697 ptr = line; in win_line() 796 prev_ptr = ptr; in win_line() 822 if (( (*mb_ptr2cells)(ptr) >= c || *ptr == TAB) && col == 0) in win_line() 1367 if (*ptr == NUL) in win_line() 1692 c = *ptr; in win_line() 1694 c0 = *ptr; in win_line() 1848 --ptr; in win_line() 1877 ++ptr; in win_line() 2018 && ((ptr > line + 1 && ptr[-2] == ' ') || *ptr == ' '); in win_line() 2497 ++ptr; in win_line() [all …]
|
| H A D | search.c | 1018 pos->col -= (*mb_head_off)(ptr, ptr + pos->col); in searchit() 1994 ptr += mb_ptr2len(ptr) + 1; in find_mps_values() 2010 ptr += mb_ptr2len(ptr); in find_mps_values() 2045 ++ptr; in find_mps_values() 2048 ++ptr; in find_mps_values() 2168 ptr = skipwhite(ptr + 1); in findmatchlimit() 2284 ptr = skipwhite(ptr + 1); in findmatchlimit() 2524 for (ptr = linep; *ptr; ++ptr) in findmatchlimit() 2529 && (ptr == linep || ptr[-1] != '\'' || ptr[1] != '\'')) in findmatchlimit() 2531 if (*ptr == '\\' && ptr[1] != NUL) in findmatchlimit() [all …]
|
| H A D | edit.c | 131 char_u *ptr; in edit() local 431 vim_free(ptr); in edit() 2632 for (ptr = ml_get_curline(); VIM_ISWHITE(*ptr) in beginline() 2633 && !((flags & BL_FIX) && ptr[1] == NUL); ++ptr) in beginline() 2725 if (*ptr != TAB && vim_isprintc((*mb_ptr2char)(ptr)) in oneleft() 4972 --ptr; in ins_tab() 4997 *ptr = TAB; in ins_tab() 5007 ++ptr; in ins_tab() 5020 ++ptr; in ins_tab() 5026 --ptr; in ins_tab() [all …]
|
| H A D | ops.c | 652 ptr = skipwhite(ptr); in op_delete() 2529 col -= (*mb_head_off)(ptr, ptr + col); in do_addsub() 2537 col -= (*mb_head_off)(ptr, ptr + col); in do_addsub() 2547 !(*mb_head_off)(ptr, ptr + col - 1)) in do_addsub() 2559 col -= (*mb_head_off)(ptr, ptr + col); in do_addsub() 2569 !(*mb_head_off)(ptr, ptr + col - 1)) in do_addsub() 2577 !(*mb_head_off)(ptr, ptr + col - 1)) in do_addsub() 2583 col -= (*mb_head_off)(ptr, ptr + col); in do_addsub() 2603 col -= (*mb_head_off)(ptr, ptr + col); in do_addsub() 2693 !(*mb_head_off)(ptr, ptr + col - 1)) in do_addsub() [all …]
|
| H A D | normal.c | 1459 char_u *ptr, in find_is_eval_item() argument 1583 prevcol = col - 1 - (*mb_head_off)(ptr, ptr + col - 1); in find_ident_at_pos() 1640 ptr += col; in find_ident_at_pos() 1666 : (ptr[col] != NUL && !VIM_ISWHITE(ptr[col]))) in find_ident_at_pos() 3638 if (ptr == NULL && (n = find_ident_under_cursor(&ptr, in nv_ident() 3700 ++ptr; in nv_ident() 3761 ptr = vim_strnsave(ptr, n); in nv_ident() 3768 vim_free(ptr); in nv_ident() 4293 vim_free(ptr); in nv_gotofile() 4528 char_u *ptr; in nv_brackets() local [all …]
|
| H A D | register.c | 1536 char_u *ptr; in do_put() local 1627 ptr = vim_strchr(ptr, '\n'); in do_put() 1631 *ptr = NUL; in do_put() 1632 ++ptr; in do_put() 1634 if (*ptr == NUL) in do_put() 1682 vim_free(ptr); in do_put() 1844 for (ptr = oldp; vcol < col && *ptr; ) in do_put() 1903 ptr = newp; in do_put() 1915 ptr += yanklen; in do_put() 1921 ptr += spaces; in do_put() [all …]
|
| H A D | spell.c | 160 char_u *ptr, in spell_check() argument 189 if (*ptr >= '0' && *ptr <= '9') in spell_check() 191 if (*ptr == '0' && (ptr[1] == 'b' || ptr[1] == 'B')) in spell_check() 193 else if (*ptr == '0' && (ptr[1] == 'x' || ptr[1] == 'X')) in spell_check() 410 char_u *ptr; in find_word() local 504 c = ptr[wlen]; in find_word() 540 if (ptr[wlen] != ' ' && ptr[wlen] != TAB) in find_word() 558 if ((*mb_head_off)(ptr, ptr + wlen) > 0) in find_word() 580 for (s = ptr; s < ptr + wlen; MB_PTR_ADV(s)) in find_word() 701 for (s = ptr; s < ptr + mip->mi_compoff; MB_PTR_ADV(s)) in find_word() [all …]
|
| H A D | os_mac_conv.c | 47 char_u *ptr, in mac_string_convert() argument 78 cfstr = CFStringCreateWithBytes(NULL, ptr, len, from, 0); in mac_string_convert() 89 cfstr = CFStringCreateWithBytes(NULL, ptr, len, from, 0); in mac_string_convert() 135 l = utf_ptr2len(ptr + in); in mac_string_convert() 138 cfstr = CFStringCreateWithBytes(NULL, ptr + in, l, from, 0); in mac_string_convert() 183 char_u *ptr, in macroman2enc() argument 193 cfstr = CFStringCreateWithBytes(NULL, ptr, len, in macroman2enc() 208 ptr + *sizep, real_size - *sizep, &len)) in macroman2enc() 214 mch_memmove(ptr, ptr + *sizep, len); in macroman2enc()
|
| H A D | change.c | 1502 char_u *ptr; in open_line() local 1506 ptr = saved_line; in open_line() 1533 p = skipwhite(ptr); in open_line() 1558 p = ptr + STRLEN(ptr) - 1; in open_line() 1566 if (p > ptr) in open_line() 1568 while (p > ptr && VIM_ISWHITE(*p)) in open_line() 1584 ptr = ml_get_curline(); in open_line() 1598 && cin_is_cinword(ptr)) in open_line() 1606 if (lead_len == 0 && ptr[0] == '#') in open_line() 1613 if (*ptr && ptr[STRLEN(ptr) - 1] == '\\') in open_line() [all …]
|
| H A D | crypt.c | 190 crypt_method_nr_from_magic(char *ptr, int len) in crypt_method_nr_from_magic() argument 198 if (memcmp(ptr, cryptmethods[i].magic, CRYPT_MAGIC_LEN) == 0) in crypt_method_nr_from_magic() 202 if (len >= i && memcmp(ptr, crypt_magic_head, i) == 0) in crypt_method_nr_from_magic() 495 char_u *ptr, in crypt_decode_alloc() argument 504 return method->decode_buffer_fn(state, ptr, len, newptr, last); in crypt_decode_alloc() 513 method->decode_fn(state, ptr, len, *newptr, last); in crypt_decode_alloc() 905 char_u *ptr; in crypt_sodium_buffer_encode() local 920 ptr = *buf_out; in crypt_sodium_buffer_encode() 925 ptr, sod_st->key); in crypt_sodium_buffer_encode() 926 ptr += crypto_secretstream_xchacha20poly1305_HEADERBYTES; in crypt_sodium_buffer_encode() [all …]
|
| H A D | if_perl.xs | 506 PERL_PROC* ptr; member 894 newWINrv(SV *rv, win_T *ptr) in newWINrv() argument 897 if (ptr->w_perl_private == NULL) in newWINrv() 899 ptr->w_perl_private = newSV(0); in newWINrv() 900 sv_setiv(ptr->w_perl_private, PTR2IV(ptr)); in newWINrv() 903 SvRV(rv) = ptr->w_perl_private; in newWINrv() 909 newBUFrv(SV *rv, buf_T *ptr) in newBUFrv() argument 912 if (ptr->b_perl_private == NULL) in newBUFrv() 914 ptr->b_perl_private = newSV(0); in newBUFrv() 915 sv_setiv(ptr->b_perl_private, PTR2IV(ptr)); in newBUFrv() [all …]
|
| H A D | mbyte.c | 5154 char_u *ptr, in convert_input_safe() argument 5178 mch_memmove(ptr, d, dlen); in convert_input_safe() 5199 char_u *ptr, in string_convert() argument 5213 char_u *ptr, in string_convert_ext() argument 5225 len = (int)STRLEN(ptr); in string_convert_ext() 5240 c = ptr[i]; in string_convert_ext() 5261 c = ptr[i]; in string_convert_ext() 5307 *d++ = ptr[i]; in string_convert_ext() 5311 c = utf_ptr2char(ptr + i); in string_convert_ext() 5397 (char *)ptr, len, 0, 0); in string_convert_ext() [all …]
|
| /vim-8.2.3635/src/libvterm/src/ |
| H A D | vterm.c | 19 void *ptr = malloc(size); in default_malloc() local 20 if(ptr) in default_malloc() 21 memset(ptr, 0, size); in default_malloc() 22 return ptr; in default_malloc() 25 static void default_free(void *ptr, void *allocdata UNUSED) in default_free() argument 27 free(ptr); in default_free() 103 INTERNAL void vterm_allocator_free(VTerm *vt, void *ptr) in vterm_allocator_free() argument 105 if (ptr) in vterm_allocator_free() 106 (*vt->allocator->free)(ptr, vt->allocdata); in vterm_allocator_free()
|
| /vim-8.2.3635/src/proto/ |
| H A D | findfile.pro | 6 char_u *find_file_in_path(char_u *ptr, int len, int options, int first, char_u *rel_fname); 8 char_u *find_directory_in_path(char_u *ptr, int len, int options, char_u *rel_fname); 9 char_u *find_file_in_path_option(char_u *ptr, int len, int options, int first, char_u *path_option,… 13 char_u *find_file_name_in_path(char_u *ptr, int len, int options, long count, char_u *rel_fname);
|
| H A D | mbyte.pro | 83 int convert_input(char_u *ptr, int len, int maxlen); 84 int convert_input_safe(char_u *ptr, int len, int maxlen, char_u **restp, int *restlenp); 85 char_u *string_convert(vimconv_T *vcp, char_u *ptr, int *lenp); 86 char_u *string_convert_ext(vimconv_T *vcp, char_u *ptr, int *lenp, int *unconvlenp);
|