neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

path.h (2037B)


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