Extract path.c from misc1.c

This commit is contained in:
John Schmidt 2014-03-27 16:29:44 +01:00 committed by Thiago de Arruda
parent 86180787fa
commit f5154d7451
30 changed files with 1372 additions and 1326 deletions

View File

@ -55,6 +55,7 @@
#include "move.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "regexp.h"
#include "screen.h"

View File

@ -20,6 +20,7 @@
#include "move.h"
#include "normal.h"
#include "option.h"
#include "path.h"
#include "screen.h"
#include "undo.h"
#include "window.h"

View File

@ -38,6 +38,7 @@
#include "normal.h"
#include "ops.h"
#include "option.h"
#include "path.h"
#include "popupmnu.h"
#include "quickfix.h"
#include "regexp.h"

View File

@ -45,6 +45,7 @@
#include "ops.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "popupmnu.h"
#include "quickfix.h"
#include "regexp.h"

View File

@ -44,6 +44,7 @@
#include "ops.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "regexp.h"
#include "screen.h"

View File

@ -35,6 +35,7 @@
#include "normal.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "regexp.h"
#include "screen.h"

View File

@ -48,6 +48,7 @@
#include "ops.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "regexp.h"
#include "screen.h"

View File

@ -44,6 +44,7 @@
#include "ops.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "regexp.h"
#include "screen.h"
#include "search.h"

View File

@ -54,6 +54,7 @@
#include "misc1.h"
#include "misc2.h"
#include "os_unix.h"
#include "path.h"
#include "tag.h"
#include "ui.h"
#include "window.h"

View File

@ -39,6 +39,7 @@
#include "normal.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "regexp.h"
#include "screen.h"

View File

@ -29,6 +29,7 @@
#include "misc2.h"
#include "garray.h"
#include "option.h"
#include "path.h"
#include "screen.h"
#include "syntax.h"
#include "term.h"

View File

@ -18,6 +18,7 @@
#include "misc1.h"
#include "misc2.h"
#include "os/time.h"
#include "path.h"
#include "quickfix.h"
#include "tag.h"
#include "ui.h"

View File

@ -38,6 +38,7 @@
#include "ops.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "screen.h"
#include "syntax.h"

View File

@ -29,6 +29,7 @@
#include "misc2.h"
#include "normal.h"
#include "option.h"
#include "path.h"
#include "quickfix.h"
#include "search.h"
#include "term.h"

View File

@ -42,6 +42,7 @@
#include "misc1.h"
#include "misc2.h"
#include "os_unix.h"
#include "path.h"
#include "ui.h"
/*

View File

@ -60,6 +60,7 @@
#include "crypt.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "screen.h"
#include "sha256.h"
#include "spell.h"

File diff suppressed because it is too large Load Diff

View File

@ -63,22 +63,6 @@ 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);
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);
int vim_ispathlistsep(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 prepare_to_exit(void);
void preserve_exit(void);
void line_breakcheck(void);
@ -89,13 +73,6 @@ int expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u *
**file,
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);
void FreeWild(int count, char_u **files);
int goto_im(void);

View File

@ -37,6 +37,7 @@
#include "option.h"
#include "ops.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "regexp.h"
#include "screen.h"

View File

@ -35,6 +35,7 @@
#include "move.h"
#include "normal.h"
#include "option.h"
#include "path.h"
#include "screen.h"
#include "search.h"
#include "term.h"

View File

@ -63,6 +63,7 @@
#include "move.h"
#include "normal.h"
#include "os_unix.h"
#include "path.h"
#include "regexp.h"
#include "screen.h"
#include "spell.h"

View File

@ -44,6 +44,7 @@
#include "misc1.h"
#include "misc2.h"
#include "garray.h"
#include "path.h"
#include "screen.h"
#include "syntax.h"
#include "term.h"

1319
src/path.c Normal file

File diff suppressed because it is too large Load Diff

26
src/path.h Normal file
View File

@ -0,0 +1,26 @@
#ifndef NEOVIM_PATH_H
#define NEOVIM_PATH_H
int vim_ispathsep(int c);
int vim_ispathsep_nocolon(int c);
int vim_ispathlistsep(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);
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);
int fullpathcmp(char_u *s1, char_u *s2, int checkname);
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);
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);
#endif

View File

@ -36,6 +36,7 @@
#include "normal.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "regexp.h"
#include "screen.h"
#include "search.h"

View File

@ -113,6 +113,7 @@
#include "move.h"
#include "normal.h"
#include "option.h"
#include "path.h"
#include "popupmnu.h"
#include "quickfix.h"
#include "regexp.h"

View File

@ -35,6 +35,7 @@
#include "move.h"
#include "normal.h"
#include "option.h"
#include "path.h"
#include "regexp.h"
#include "screen.h"
#include "term.h"

View File

@ -320,6 +320,7 @@
#include "normal.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "regexp.h"
#include "screen.h"
#include "search.h"

View File

@ -36,6 +36,7 @@
#include "move.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "regexp.h"
#include "screen.h"

View File

@ -98,6 +98,7 @@
#include "garray.h"
#include "option.h"
#include "os_unix.h"
#include "path.h"
#include "quickfix.h"
#include "screen.h"
#include "sha256.h"