Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
17977:7fa0c4b6bfa5 | 17978:8f4cc259ed7a |
---|---|
41 void vim_unsetenv(char_u *var); | 41 void vim_unsetenv(char_u *var); |
42 void vim_setenv(char_u *name, char_u *val); | 42 void vim_setenv(char_u *name, char_u *val); |
43 char_u *get_env_name(expand_T *xp, int idx); | 43 char_u *get_env_name(expand_T *xp, int idx); |
44 char_u *get_users(expand_T *xp, int idx); | 44 char_u *get_users(expand_T *xp, int idx); |
45 int match_user(char_u *name); | 45 int match_user(char_u *name); |
46 void home_replace(buf_T *buf, char_u *src, char_u *dst, int dstlen, int one); | |
47 char_u *home_replace_save(buf_T *buf, char_u *src); | |
48 int fullpathcmp(char_u *s1, char_u *s2, int checkname, int expandenv); | |
49 char_u *gettail(char_u *fname); | |
50 char_u *gettail_sep(char_u *fname); | |
51 char_u *getnextcomp(char_u *fname); | |
52 char_u *get_past_head(char_u *path); | |
53 int vim_ispathsep(int c); | |
54 int vim_ispathsep_nocolon(int c); | |
55 void shorten_dir(char_u *str); | |
56 int dir_of_file_exists(char_u *fname); | |
57 int vim_fnamecmp(char_u *x, char_u *y); | |
58 int vim_fnamencmp(char_u *x, char_u *y, size_t len); | |
59 char_u *concat_fnames(char_u *fname1, char_u *fname2, int sep); | |
60 char_u *concat_str(char_u *str1, char_u *str2); | 46 char_u *concat_str(char_u *str1, char_u *str2); |
61 void add_pathsep(char_u *p); | |
62 char_u *FullName_save(char_u *fname, int force); | |
63 void preserve_exit(void); | 47 void preserve_exit(void); |
64 int vim_fexists(char_u *fname); | |
65 void line_breakcheck(void); | 48 void line_breakcheck(void); |
66 void fast_breakcheck(void); | 49 void fast_breakcheck(void); |
67 int expand_wildcards_eval(char_u **pat, int *num_file, char_u ***file, int flags); | |
68 int expand_wildcards(int num_pat, char_u **pat, int *num_files, char_u ***files, int flags); | |
69 int match_suffix(char_u *fname); | |
70 int unix_expandpath(garray_T *gap, char_u *path, int wildoff, int flags, int didstar); | |
71 void remove_duplicates(garray_T *gap); | |
72 int gen_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file, int flags); | |
73 void addfile(garray_T *gap, char_u *f, int flags); | |
74 char_u *get_cmd_output(char_u *cmd, char_u *infile, int flags, int *ret_len); | 50 char_u *get_cmd_output(char_u *cmd, char_u *infile, int flags, int *ret_len); |
75 void FreeWild(int count, char_u **files); | 51 void get_cmd_output_as_rettv(typval_T *argvars, typval_T *rettv, int retlist); |
52 void f_system(typval_T *argvars, typval_T *rettv); | |
53 void f_systemlist(typval_T *argvars, typval_T *rettv); | |
76 int goto_im(void); | 54 int goto_im(void); |
77 char_u *get_isolated_shell_name(void); | 55 char_u *get_isolated_shell_name(void); |
78 int path_is_url(char_u *p); | 56 int path_is_url(char_u *p); |
79 int path_with_url(char_u *fname); | 57 int path_with_url(char_u *fname); |
80 int vim_isAbsName(char_u *name); | |
81 int vim_FullName(char_u *fname, char_u *buf, int len, int force); | |
82 /* vim: set ft=c : */ | 58 /* vim: set ft=c : */ |