Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 93) sorted by relevance

1234

/vim-8.2.3635/src/xdiff/
H A Dxutils.c177 if (s1 == s2 && !memcmp(l1, l2, s1)) in xdl_recmatch()
195 while (i1 < s1 && i2 < s2) { in xdl_recmatch()
199 while (i1 < s1 && XDL_ISSPACE(l1[i1])) in xdl_recmatch()
205 while (i1 < s1 && i2 < s2) { in xdl_recmatch()
208 while (i1 < s1 && XDL_ISSPACE(l1[i1])) in xdl_recmatch()
228 return (ends_with_optional_cr(l1, s1, i1) && in xdl_recmatch()
238 if (i1 < s1) { in xdl_recmatch()
239 while (i1 < s1 && XDL_ISSPACE(l1[i1])) in xdl_recmatch()
241 if (s1 != i1) in xdl_recmatch()
353 nb += xdl_num_out(buf + nb, c1 ? s1: s1 - 1); in xdl_format_hunk_hdr()
[all …]
H A Dxemit.c179 long s1, s2, e1, e2, lctx; in xdl_emit_diff() local
227 if (fs1 < s1) { in xdl_emit_diff()
228 s2 = XDL_MAX(s2 - (s1 - fs1), 0); in xdl_emit_diff()
229 s1 = fs1; in xdl_emit_diff()
236 xchp->i1 + xchp->chg1 <= s1 && in xdl_emit_diff()
295 s1 - 1, funclineprev); in xdl_emit_diff()
296 funclineprev = s1 - 1; in xdl_emit_diff()
300 xdl_emit_hunk_hdr(s1 + 1, e1 - s1, s2 + 1, e2 - s2, in xdl_emit_diff()
315 for (; s1 < xch->i1 && s2 < xch->i2; s1++, s2++) in xdl_emit_diff()
322 for (s1 = xch->i1; s1 < xch->i1 + xch->chg1; s1++) in xdl_emit_diff()
[all …]
H A Dxutils.h36 int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags);
40 int xdl_emit_hunk_hdr(long s1, long c1, long s2, long c2,
H A Dxhistogram.c99 #define CMP_ENV(xpp, env, s1, l1, s2, l2) \ argument
100 (cmp_recs(xpp, REC(env, s1, l1), REC(env, s2, l2)))
102 #define CMP(i, s1, l1, s2, l2) \ argument
103 (cmp_recs(i->xpp, REC(i->env, s1, l1), REC(i->env, s2, l2)))
H A Dxdiffi.c677 static int score_cmp(struct split_score *s1, struct split_score *s2) in score_cmp() argument
680 int cmp_indents = ((s1->effective_indent > s2->effective_indent) - in score_cmp()
681 (s1->effective_indent < s2->effective_indent)); in score_cmp()
683 return INDENT_WEIGHT * cmp_indents + (s1->penalty - s2->penalty); in score_cmp()
/vim-8.2.3635/runtime/macros/urm/
H A Dexamples10 Abs. Diff. [90,81]: (a1;a4;s2)2; (a2;s1)1; (a1;a5;s3)3; (a3;s1)1; (s2;s3)3; (s5;s4)4; (a2;s5)5.
12 Mult [227, 161]: (a4;a5;s2)2; ((a2;s4)4; s3; (a1;a4;s5)5; (a5;s1)1)3.
13 Copy [ 48, 25]: (a1;a3;s2)2; (a2;s1)1.
16 …10)10; (a3;s11)11; ((a12;a13;s3)3; (a3;s13)13; (s2;s3)3; (a3;s12)12; a14; (s1)1; (a9;a10;s2)2; (a1…
/vim-8.2.3635/src/
H A Dtypval.c1156 char_u *s1, *s2; in typval_compare() local
1374 s1 = tv_get_string_buf(typ1, buf1); in typval_compare()
1377 i = ic ? MB_STRICMP(s1, s2) : STRCMP(s1, s2); in typval_compare()
1468 char_u *s1, *s2; in func_equal() local
1476 if (s1 != NULL && *s1 == NUL) in func_equal()
1477 s1 = NULL; in func_equal()
1482 if (s1 == NULL || s2 == NULL) in func_equal()
1484 if (s1 != s2) in func_equal()
1487 else if (STRCMP(s1, s2) != 0) in func_equal()
1527 char_u *s1, *s2; in tv_equal() local
[all …]
H A Dregexp_nfa.c3405 nfa_state_T *s1; in post2nfa() local
3606 patch(e.out, s1); in post2nfa()
3608 s1 = s; in post2nfa()
3685 s1->out= skip; in post2nfa()
3691 patch(e.out, s1); in post2nfa()
3777 if (s1 == NULL) in post2nfa()
4226 linenr_T s1; in sub_equal() local
4239 s1 = -1; in sub_equal()
4244 if (s1 != s2) in sub_equal()
4255 s1 = -1; in sub_equal()
[all …]
H A Dtermlib.c578 _match(char *s1, char *s2) in _match() argument
582 while (s1[i] && s1[i] == s2[i]) in _match()
H A Dstrings.c539 vim_stricmp(char *s1, char *s2) in vim_stricmp() argument
545 i = (int)TOLOWER_LOC(*s1) - (int)TOLOWER_LOC(*s2); in vim_stricmp()
548 if (*s1 == NUL) in vim_stricmp()
550 ++s1; in vim_stricmp()
564 vim_strnicmp(char *s1, char *s2, size_t len) in vim_strnicmp() argument
570 i = (int)TOLOWER_LOC(*s1) - (int)TOLOWER_LOC(*s2); in vim_strnicmp()
573 if (*s1 == NUL) in vim_strnicmp()
575 ++s1; in vim_strnicmp()
709 static int sort_compare(const void *s1, const void *s2);
712 sort_compare(const void *s1, const void *s2) in sort_compare() argument
[all …]
H A Dmbyte.c3614 char_u *s1, in utf_strnicmp() argument
3624 c1 = utf_safe_read_char_adv(&s1, &n1); in utf_strnicmp()
3658 s1 = buffer; in utf_strnicmp()
3668 cdiff = (int)(*s1) - (int)(*s2); in utf_strnicmp()
3672 s1++; in utf_strnicmp()
3678 if (n1 > 0 && *s1 == NUL) in utf_strnicmp()
3697 mb_strnicmp(char_u *s1, char_u *s2, size_t nn) in mb_strnicmp() argument
3705 return utf_strnicmp(s1, s2, nn, nn); in mb_strnicmp()
3714 l = (*mb_ptr2len)(s1 + i); in mb_strnicmp()
3718 if (s1[i] != s2[i]) in mb_strnicmp()
[all …]
H A Dprofiler.c504 prof_total_cmp(const void *s1, const void *s2) in prof_total_cmp() argument
508 p1 = *(ufunc_T **)s1; in prof_total_cmp()
517 prof_self_cmp(const void *s1, const void *s2) in prof_self_cmp() argument
521 p1 = *(ufunc_T **)s1; in prof_self_cmp()
H A Dfindfile.c1323 ff_wc_equal(char_u *s1, char_u *s2) in ff_wc_equal() argument
1331 if (s1 == s2) in ff_wc_equal()
1334 if (s1 == NULL || s2 == NULL) in ff_wc_equal()
1337 for (i = 0, j = 0; s1[i] != NUL && s2[j] != NUL;) in ff_wc_equal()
1339 c1 = PTR2CHAR(s1 + i); in ff_wc_equal()
1348 i += mb_ptr2len(s1 + i); in ff_wc_equal()
1351 return s1[i] == s2[j]; in ff_wc_equal()
H A Dhelp.c294 help_compare(const void *s1, const void *s2) in help_compare() argument
300 p1 = *(char **)s1 + strlen(*(char **)s1) + 1; in help_compare()
309 return strcmp(*(char **)s1, *(char **)s2); in help_compare()
H A Diid_ole.c33 unsigned short s1; member
H A Dgetchar.c969 char_u *s1, *s2; in ins_typebuf() local
1022 s1 = alloc(newlen); in ins_typebuf()
1023 if (s1 == NULL) // out of memory in ins_typebuf()
1028 vim_free(s1); in ins_typebuf()
1034 mch_memmove(s1 + newoff, typebuf.tb_buf + typebuf.tb_off, in ins_typebuf()
1037 mch_memmove(s1 + newoff + offset, str, (size_t)addlen); in ins_typebuf()
1040 mch_memmove(s1 + newoff + offset + addlen, in ins_typebuf()
1045 typebuf.tb_buf = s1; in ins_typebuf()
/vim-8.2.3635/runtime/ftplugin/
H A Dscala.vim21 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s2:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,://
23 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,://
H A Dscss.vim11 setlocal comments=s1:/*,mb:*,ex:*/,://
H A Dasm.vim8 setl comments=:;,s1:/*,mb:*,ex:*/,://
H A Dgo.vim13 setlocal comments=s1:/*,mb:*,ex:*/,://
H A Dindent.vim16 setlocal comments=s1:/*,mb:*,ex:*/ commentstring&
/vim-8.2.3635/runtime/indent/
H A Dvhdl.vim188 let s1 = s:NC.'\<select'.s:ES
189 if ps !~? s1 && pps =~? s1
193 let s1 = '^\s*type\>'
194 if ps !~? s1 && pps =~? s1
/vim-8.2.3635/src/proto/
H A Dstrings.pro15 int vim_stricmp(char *s1, char *s2);
16 int vim_strnicmp(char *s1, char *s2, size_t len);
H A Dviminfo.pro3 int buf_compare(const void *s1, const void *s2);
/vim-8.2.3635/src/xxd/
H A Dxxd.c178 # define STRNCMP(s1, s2, l) strncmp(s1, s2, (size_t)l) argument
180 # define STRNCMP(s1, s2, l) strncmp(s1, s2, l) argument

1234