Home
last modified time | relevance | path

Searched refs:tbuf (Results 1 – 12 of 12) sorted by relevance

/vim-8.2.3635/src/
H A Dtermlib.c107 strcpy(tbuf, tmp); in tgetent()
108 tent = tbuf; in tgetent()
118 strcpy(tbuf, tcap); in tgetent()
129 len = strlen(tbuf); in tgetent()
134 tent = tbuf; // reset it back to the beginning in tgetent()
143 getent(char *tbuf, char *term, FILE *termcap, int buflen) in getent() argument
150 tptr = tbuf; in getent()
161 tent = tbuf; in getent()
175 nextent(char *tbuf, FILE *termcap, int buflen) in nextent() argument
177 char *lbuf = tbuf; // lbuf=line buffer in nextent()
[all …]
H A Ddosinst.h289 char tbuf[BUFSIZE]; in get_shell_folder_path() local
292 strcpy(tbuf, shell_folder_path); in get_shell_folder_path()
293 strcat(tbuf, "\\vim write test"); in get_shell_folder_path()
294 fd = fopen(tbuf, "w"); in get_shell_folder_path()
302 unlink(tbuf); in get_shell_folder_path()
H A Dif_cscope.c1911 char *fname, *lno, *extra, *tbuf; in cs_print_tags_priv() local
1921 if ((tbuf = alloc(strlen(matches[0]) + 1)) == NULL) in cs_print_tags_priv()
1924 strcpy(tbuf, matches[0]); in cs_print_tags_priv()
1925 ptag = strtok(tbuf, "\t"); in cs_print_tags_priv()
1928 vim_free(tbuf); in cs_print_tags_priv()
1941 vim_free(tbuf); in cs_print_tags_priv()
1955 if ((tbuf = alloc(strlen(matches[idx]) + 1)) == NULL) in cs_print_tags_priv()
1957 (void)strcpy(tbuf, matches[idx]); in cs_print_tags_priv()
1959 if (strtok(tbuf, (const char *)"\t") == NULL in cs_print_tags_priv()
1963 vim_free(tbuf); in cs_print_tags_priv()
[all …]
H A Dfileio.c3677 char tbuf[FGETS_SIZE]; in vim_fgets() local
3690 } while (tbuf[FGETS_SIZE - 2] != NUL && tbuf[FGETS_SIZE - 2] != '\n'); in vim_fgets()
3988 buf_T *tbuf = curbuf; in move_lines() local
4021 curbuf = tbuf; in move_lines()
4041 char *tbuf; in buf_check_timestamp() local
4240 STRCAT(tbuf, "\n"); in buf_check_timestamp()
4241 STRCAT(tbuf, mesg2); in buf_check_timestamp()
4244 (char_u *)tbuf, in buf_check_timestamp()
4254 STRCAT(tbuf, "; "); in buf_check_timestamp()
4257 emsg(tbuf); in buf_check_timestamp()
[all …]
H A Dsession.c1339 char_u *tbuf; in ex_mkrc() local
1341 tbuf = alloc(MAXPATHL); in ex_mkrc()
1342 if (tbuf != NULL) in ex_mkrc()
1344 if (vim_FullName(fname, tbuf, MAXPATHL, FALSE) == OK) in ex_mkrc()
1345 set_vim_var_string(VV_THIS_SESSION, tbuf, -1); in ex_mkrc()
1346 vim_free(tbuf); in ex_mkrc()
H A Dmenu.c2234 char_u *tbuf; in gui_add_tearoff() local
2238 tbuf = alloc(5 + (unsigned int)STRLEN(tearpath)); in gui_add_tearoff()
2239 if (tbuf != NULL) in gui_add_tearoff()
2241 tbuf[0] = K_SPECIAL; in gui_add_tearoff()
2242 tbuf[1] = K_SECOND(K_TEAROFF); in gui_add_tearoff()
2243 tbuf[2] = K_THIRD(K_TEAROFF); in gui_add_tearoff()
2244 STRCPY(tbuf + 3, tearpath); in gui_add_tearoff()
2245 STRCAT(tbuf + 3, "\r"); in gui_add_tearoff()
2263 add_menu_path(tearpath, &menuarg, pri_tab, tbuf, FALSE); in gui_add_tearoff()
2270 vim_free(tbuf); in gui_add_tearoff()
H A Dhardcopy.c377 char_u tbuf[20]; in prt_line_number() local
386 sprintf((char *)tbuf, "%6ld", (long)lnum); in prt_line_number()
388 (void)mch_print_text_out(&tbuf[i], 1); in prt_line_number()
457 char_u *tbuf; in prt_header() local
465 tbuf = alloc(width + IOSIZE); in prt_header()
466 if (tbuf == NULL) in prt_header()
492 build_stl_str_hl(curwin, tbuf, (size_t)(width + IOSIZE), in prt_header()
503 sprintf((char *)tbuf, _("Page %d"), pagenum); in prt_header()
512 for (p = tbuf; *p != NUL; ) in prt_header()
524 vim_free(tbuf); in prt_header()
H A Dterm.c1873 char_u tbuf[TBUFSZ]; in set_termname() local
1879 if ((error_msg = tgetent_error(tbuf, term)) == NULL) in set_termname()
2207 tgetent_error(char_u *tbuf, char_u *term) in tgetent_error() argument
2213 i = TGETENT(tbuf, term); in tgetent_error()
2223 (void)TGETENT(tbuf, "dumb"); in tgetent_error()
2267 char_u tbuf[TBUFSZ]; in getlinecol() local
2269 if (T_NAME != NULL && *T_NAME != NUL && tgetent_error(tbuf, T_NAME) == NULL) in getlinecol()
2296 char_u tbuf[TBUFSZ]; in add_termcap_entry() local
2368 error_msg = tgetent_error(tbuf, term); in add_termcap_entry()
H A Dgui_w32.c6674 char_u tbuf[128]; in rebuild_tearoff() local
6682 GetWindowText(thwnd, (LPSTR)tbuf, 127); in rebuild_tearoff()
6697 gui_mch_tearoff(tbuf, menu, x, y); in rebuild_tearoff()
/vim-8.2.3635/src/proto/
H A Dtermlib.pro2 int tgetent(char *tbuf, char *term);
/vim-8.2.3635/src/testdir/
H A Dtest_terminal.vim1532 let tbuf = bufnr('')
1533 call term_sendkeys(tbuf, "clear; echo a; echo b; sleep 1; clear\n")
1539 exe tbuf . 'bwipe!'
/vim-8.2.3635/runtime/doc/
H A Dversion8.txt8880 Solution: Free tbuf. (idea by Forrest Fleming)