Mercurial > vim
diff src/proto/misc1.pro @ 17978:8f4cc259ed7a v8.1.1985
patch 8.1.1985: code for dealing with paths is spread out
Commit: https://github.com/vim/vim/commit/26262f87770d3a1a68b09a70152d75c2e2ae186f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 4 20:59:15 2019 +0200
patch 8.1.1985: code for dealing with paths is spread out
Problem: Code for dealing with paths is spread out.
Solution: Move path related functions from misc1.c to filepath.c.
Remove NO_EXPANDPATH.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Sep 2019 21:00:04 +0200 |
parents | 0f7ae8010787 |
children | d1e77015f60b |
line wrap: on
line diff
--- a/src/proto/misc1.pro +++ b/src/proto/misc1.pro @@ -43,40 +43,16 @@ void vim_setenv(char_u *name, char_u *va char_u *get_env_name(expand_T *xp, int idx); char_u *get_users(expand_T *xp, int idx); int match_user(char_u *name); -void home_replace(buf_T *buf, char_u *src, char_u *dst, int dstlen, int one); -char_u *home_replace_save(buf_T *buf, char_u *src); -int fullpathcmp(char_u *s1, char_u *s2, int checkname, int expandenv); -char_u *gettail(char_u *fname); -char_u *gettail_sep(char_u *fname); -char_u *getnextcomp(char_u *fname); -char_u *get_past_head(char_u *path); -int vim_ispathsep(int c); -int vim_ispathsep_nocolon(int c); -void shorten_dir(char_u *str); -int dir_of_file_exists(char_u *fname); -int vim_fnamecmp(char_u *x, char_u *y); -int vim_fnamencmp(char_u *x, char_u *y, size_t len); -char_u *concat_fnames(char_u *fname1, char_u *fname2, int sep); char_u *concat_str(char_u *str1, char_u *str2); -void add_pathsep(char_u *p); -char_u *FullName_save(char_u *fname, int force); void preserve_exit(void); -int vim_fexists(char_u *fname); void line_breakcheck(void); void fast_breakcheck(void); -int expand_wildcards_eval(char_u **pat, int *num_file, char_u ***file, int flags); -int expand_wildcards(int num_pat, char_u **pat, int *num_files, char_u ***files, int flags); -int match_suffix(char_u *fname); -int unix_expandpath(garray_T *gap, char_u *path, int wildoff, int flags, int didstar); -void remove_duplicates(garray_T *gap); -int gen_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file, int flags); -void addfile(garray_T *gap, char_u *f, int flags); char_u *get_cmd_output(char_u *cmd, char_u *infile, int flags, int *ret_len); -void FreeWild(int count, char_u **files); +void get_cmd_output_as_rettv(typval_T *argvars, typval_T *rettv, int retlist); +void f_system(typval_T *argvars, typval_T *rettv); +void f_systemlist(typval_T *argvars, typval_T *rettv); int goto_im(void); char_u *get_isolated_shell_name(void); int path_is_url(char_u *p); int path_with_url(char_u *fname); -int vim_isAbsName(char_u *name); -int vim_FullName(char_u *fname, char_u *buf, int len, int force); /* vim: set ft=c : */