mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
Extract path.c from misc1.c
This commit is contained in:
parent
86180787fa
commit
f5154d7451
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include "misc1.h"
|
||||
#include "misc2.h"
|
||||
#include "os_unix.h"
|
||||
#include "path.h"
|
||||
#include "ui.h"
|
||||
|
||||
/*
|
||||
|
@ -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"
|
||||
|
1304
src/misc1.c
1304
src/misc1.c
File diff suppressed because it is too large
Load Diff
23
src/misc1.h
23
src/misc1.h
@ -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);
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
1319
src/path.c
Normal file
File diff suppressed because it is too large
Load Diff
26
src/path.h
Normal file
26
src/path.h
Normal 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
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user