path.h
Go to the documentation of this file.
1 #ifndef NVIM_PATH_H
2 #define NVIM_PATH_H
3 
4 #include "nvim/func_attr.h"
5 #include "nvim/garray.h"
6 #include "nvim/types.h"
7 
8 // Flags for expand_wildcards()
9 #define EW_DIR 0x01 // include directory names
10 #define EW_FILE 0x02 // include file names
11 #define EW_NOTFOUND 0x04 // include not found names
12 #define EW_ADDSLASH 0x08 // append slash to directory name
13 #define EW_KEEPALL 0x10 // keep all matches
14 #define EW_SILENT 0x20 // don't print "1 returned" from shell
15 #define EW_EXEC 0x40 // executable files
16 #define EW_PATH 0x80 // search in 'path' too
17 #define EW_ICASE 0x100 // ignore case
18 #define EW_NOERROR 0x200 // no error for bad regexp
19 #define EW_NOTWILD 0x400 // add match with literal name if exists
20 #define EW_KEEPDOLLAR 0x800 // do not escape $, $var is expanded
21 /* Note: mostly EW_NOTFOUND and EW_SILENT are mutually exclusive: EW_NOTFOUND
22 * is used when executing commands and EW_SILENT for interactive expanding. */
23 #define EW_ALLLINKS 0x1000 // also links not pointing to existing file
24 #define EW_SHELLCMD 0x2000 // called from expand_shellcmd(), don't check
25  // if executable is in $PATH
26 #define EW_DODOT 0x4000 // also files starting with a dot
27 #define EW_EMPTYOK 0x8000 // no matches is not an error
28 #define EW_NOTENV 0x10000 // do not expand environment variables
29 
31 typedef enum file_comparison {
38 
39 #ifdef INCLUDE_GENERATED_DECLARATIONS
40 # include "path.h.generated.h"
41 #endif
42 #endif
kOneFileMissing
@ kOneFileMissing
One of them doesn't exist.
Definition: path.h:35
types.h
kBothFilesMissing
@ kBothFilesMissing
Both don't exist.
Definition: path.h:34
kEqualFileNames
@ kEqualFileNames
Both don't exist and file names are same.
Definition: path.h:36
file_comparison
file_comparison
Return value for the comparison of two files. Also.
Definition: path.h:31
garray.h
kDifferentFiles
@ kDifferentFiles
Both exist and are different files.
Definition: path.h:33
func_attr.h
FileComparison
enum file_comparison FileComparison
Return value for the comparison of two files. Also.
kEqualFiles
@ kEqualFiles
Both exist and are the same file.
Definition: path.h:32