Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 27) sorted by relevance

12

/vim-8.2.3635/src/
H A Dos_mac_conv.c57 int buflen, in, out, l, i; in mac_string_convert() local
95 buflen = len * 6 + 1; in mac_string_convert()
97 buflen = len + 1; in mac_string_convert()
98 retval = alloc(buflen); in mac_string_convert()
108 CFStringGetBytes(cfstr, convertRange, to, NULL, FALSE, NULL, 0, (CFIndex *)&buflen); in mac_string_convert()
109 retval = (buflen > 0) ? alloc(buflen) : NULL; in mac_string_convert()
116 *lenp = buflen / sizeof(char_u); in mac_string_convert()
118 if (!CFStringGetBytes(cfstr, convertRange, to, NULL, FALSE, retval, buflen, NULL)) in mac_string_convert()
120 if (!CFStringGetCString(cfstr, (char *)retval, buflen, to)) in mac_string_convert()
132 for (d = retval, in = 0, out = 0; in < len && out < buflen - 1;) in mac_string_convert()
[all …]
H A Dtermlib.c143 getent(char *tbuf, char *term, FILE *termcap, int buflen) in getent() argument
148 while (nextent(tbuf, termcap, buflen)) // For each possible entry in getent()
175 nextent(char *tbuf, FILE *termcap, int buflen) in nextent() argument
180 while (lbuf < tbuf+buflen && // There's room and in nextent()
181 fgets(lbuf, (int)(tbuf+buflen-lbuf), termcap)) // another line in nextent()
H A Dos_vms.c50 short buflen; member
108 itm->buflen = len; in vul_item()
650 static size_t buflen = 0; in vms_fixfilename() local
655 if (len > buflen) in vms_fixfilename()
657 buflen = len + 128; in vms_fixfilename()
658 buf = vim_realloc(buf, buflen * sizeof(char)); in vms_fixfilename()
663 tmpbuf = ALLOC_MULT(char, buflen); in vms_fixfilename()
H A Dmisc1.c798 int buflen = 150; in get_keystroke() local
814 maxlen = (buflen - 6 - len) / 3; in get_keystroke()
816 buf = alloc(buflen); in get_keystroke()
823 buflen += 100; in get_keystroke()
824 buf = vim_realloc(buf, buflen); in get_keystroke()
827 maxlen = (buflen - 6 - len) / 3; in get_keystroke()
831 do_outofmem_msg((long_u)buflen); in get_keystroke()
849 if ((n = check_termcode(1, buf, buflen, &len)) < 0 in get_keystroke()
895 buf[len >= buflen ? buflen - 1 : len] = NUL; in get_keystroke()
H A Ddigraph.c2579 size_t buflen; in keymap_init() local
2583 buflen = STRLEN(curbuf->b_p_keymap) + STRLEN(p_enc) + 14; in keymap_init()
2584 buf = alloc(buflen); in keymap_init()
2589 vim_snprintf((char *)buf, buflen, "keymap/%s_%s.vim", in keymap_init()
2594 vim_snprintf((char *)buf, buflen, "keymap/%s.vim", in keymap_init()
H A Dgetchar.c1261 static int buflen = 0; in gotchars() local
1266 buf[buflen++] = *s++; in gotchars()
1270 if (buflen == 1 && buf[0] == K_SPECIAL) in gotchars()
1272 if (buflen == 2) in gotchars()
1274 if (buflen == 3 && buf[1] == KS_EXTRA in gotchars()
1279 buflen = 0; in gotchars()
1284 for (i = 0; i < buflen; ++i) in gotchars()
1289 buf[buflen] = NUL; in gotchars()
1290 add_buff(&recordbuff, buf, (long)buflen); in gotchars()
1292 last_recorded_len += buflen; in gotchars()
[all …]
H A Dterm.c4512 int *buflen) in put_string_in_typebuf() argument
4536 (size_t)(*buflen + offset + extra)); in put_string_in_typebuf()
4544 (size_t)(*buflen - offset)); in put_string_in_typebuf()
4547 *buflen = *buflen + extra + new_slen; in put_string_in_typebuf()
4888 int *buflen) in handle_key_with_modifier() argument
4924 buf, bufsize, buflen) == FAIL) in handle_key_with_modifier()
4952 int *buflen, in handle_csi() argument
5300 int *buflen) in check_termcode() argument
5346 if (offset >= *buflen) in check_termcode()
5349 len = *buflen - offset; in check_termcode()
[all …]
H A Dtime.c1090 add_time(char_u *buf, size_t buflen, time_t tt) in add_time() argument
1101 (void)strftime((char *)buf, buflen, "%H:%M:%S", curtime); in add_time()
1104 (void)strftime((char *)buf, buflen, "%Y/%m/%d %H:%M:%S", curtime); in add_time()
1111 vim_snprintf((char *)buf, buflen, in add_time()
H A Dmessage.c241 int buflen) in trunc_string() argument
252 if (buflen > 0) in trunc_string()
262 for (e = 0; len < half && e < buflen; ++e) in trunc_string()
278 if (++e == buflen) in trunc_string()
328 if (len >= (size_t)buflen) in trunc_string()
329 len = buflen - 1; in trunc_string()
337 else if (e + 3 < buflen) in trunc_string()
342 if (len >= (size_t)buflen - e - 3) in trunc_string()
343 len = buflen - e - 3 - 1; in trunc_string()
H A Dbuffer.c3772 size_t buflen, in col_print() argument
3777 vim_snprintf((char *)buf, buflen, "%d", col); in col_print()
3779 vim_snprintf((char *)buf, buflen, "%d-%d", col, vcol); in col_print()
5062 int buflen) in get_rel_pos() argument
5067 if (buflen < 3) // need at least 3 chars for writing in get_rel_pos()
5080 (size_t)(buflen - 1)); in get_rel_pos()
5082 vim_strncpy(buf, (char_u *)_("Top"), (size_t)(buflen - 1)); in get_rel_pos()
5084 vim_snprintf((char *)buf, (size_t)buflen, "%2d%%", above > 1000000L in get_rel_pos()
5098 int buflen, in append_arg_number() argument
5107 if (p - buf + 35 >= buflen) // getting too long in append_arg_number()
[all …]
H A Dscriptfile.c281 size_t buflen; in do_in_path() local
285 buflen = STRLEN(buf); in do_in_path()
290 int is_after = buflen >= 5 in do_in_path()
291 && STRCMP(buf + buflen - 5, "after") == 0; in do_in_path()
304 else if (buflen + STRLEN(name) + 2 < MAXPATHL) in do_in_path()
H A Dcharset.c392 int buflen) in str_foldcase() argument
414 if (len >= buflen) // Ugly! in str_foldcase()
415 len = buflen - 1; in str_foldcase()
450 : len + nlen - olen >= buflen) in str_foldcase()
H A Dspell.c1286 int buflen = 0; in spell_move_to() local
1314 if (buflen < len + MAXWLEN + 2) in spell_move_to()
1317 buflen = len + MAXWLEN + 2; in spell_move_to()
1318 buf = alloc(buflen); in spell_move_to()
2745 int buflen) in spell_casefold() argument
2749 if (len >= buflen) in spell_casefold()
2764 if (outi + MB_MAXBYTES > buflen) in spell_casefold()
H A Ddiff.c1207 size_t buflen; in ex_diffpatch() local
1257 buflen = STRLEN(tmp_orig) + STRLEN(esc_name) + STRLEN(tmp_new) + 16; in ex_diffpatch()
1258 buf = alloc(buflen); in ex_diffpatch()
1295 vim_snprintf((char *)buf, buflen, "patch -o %s %s < %s", in ex_diffpatch()
H A Dex_getln.c3281 static int buflen = 0; in draw_cmdline() local
3297 if (len * 2 + 2 > buflen) in draw_cmdline()
3302 buflen = len * 2 + 2; in draw_cmdline()
3303 arshape_buf = alloc(buflen); in draw_cmdline()
H A Dgui_x11.c2328 static int buflen = 0; in gui_mch_draw_string() local
2338 if (buflen < len) in gui_mch_draw_string()
2343 buflen = len; in gui_mch_draw_string()
H A Dchannel.c2194 size_t buflen = STRLEN(reader.js_buf); in channel_parse_json() local
2196 if (chanpart->ch_wait_len < buflen) in channel_parse_json()
2202 (int)buflen); in channel_parse_json()
2204 chanpart->ch_wait_len = buflen; in channel_parse_json()
H A Dex_cmds.c1659 int buflen, in append_redir() argument
1680 vim_snprintf((char *)end, (size_t)(buflen - (end - buf)), in append_redir()
1684 vim_snprintf((char *)end, (size_t)(buflen - (end - buf)), in append_redir()
/vim-8.2.3635/src/proto/
H A Dbuffer.pro47 void col_print(char_u *buf, size_t buflen, int col, int vcol);
52 void get_rel_pos(win_T *wp, char_u *buf, int buflen);
H A Dterm.pro77 …typebuf(int offset, int slen, char_u *string, int new_slen, char_u *buf, int bufsize, int *buflen);
79 int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen);
H A Dtime.pro27 void add_time(char_u *buf, size_t buflen, time_t tt);
H A Dex_cmds.pro11 void append_redir(char_u *buf, int buflen, char_u *opt, char_u *fname);
H A Dspell.pro29 int spell_casefold(win_T *wp, char_u *str, int len, char_u *buf, int buflen);
H A Dcharset.pro6 char_u *str_foldcase(char_u *str, int orglen, char_u *buf, int buflen);
H A Dmessage.pro7 void trunc_string(char_u *s, char_u *buf, int room_in, int buflen);

12