diff options
author | Yamakaky <yamakaky@gmail.com> | 2015-05-06 18:30:51 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-07-06 08:23:21 -0400 |
commit | 2e46765849e504cd961fc98195d5e5dff443f09a (patch) | |
tree | 9608edd2ec8e75521167f5a8ad68c8979ee42290 /src/nvim/os/unix_defs.h | |
parent | e949c2bd62f399a04ae23570203d61344bdd69e9 (diff) | |
download | rneovim-2e46765849e504cd961fc98195d5e5dff443f09a.tar.gz rneovim-2e46765849e504cd961fc98195d5e5dff443f09a.tar.bz2 rneovim-2e46765849e504cd961fc98195d5e5dff443f09a.zip |
Split os_unix_defs.h into os/
Diffstat (limited to 'src/nvim/os/unix_defs.h')
-rw-r--r-- | src/nvim/os/unix_defs.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h index 28ae89ff77..de5dac3369 100644 --- a/src/nvim/os/unix_defs.h +++ b/src/nvim/os/unix_defs.h @@ -1,7 +1,80 @@ #ifndef NVIM_OS_UNIX_DEFS_H #define NVIM_OS_UNIX_DEFS_H +#include <unistd.h> +#include <signal.h> + +// Defines BSD, if it's a BSD system. +#ifdef HAVE_SYS_PARAM_H +# include <sys/param.h> +#endif + + #define TEMP_DIR_NAMES {"$TMPDIR", "/tmp", ".", "~"} #define TEMP_FILE_PATH_MAXLEN 256 +#define HAVE_ACL (HAVE_POSIX_ACL || HAVE_SOLARIS_ACL) + +// Special wildcards that need to be handled by the shell. +#define SPECIAL_WILDCHAR "`'{" + +#ifndef SYS_VIMRC_FILE +# define SYS_VIMRC_FILE "$VIM/nvimrc" +#endif + +#ifndef DFLT_HELPFILE +# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt" +#endif + +#ifndef SYNTAX_FNAME +# define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim" +#endif + +#ifndef USR_EXRC_FILE +# define USR_EXRC_FILE "~/.exrc" +#endif + +#ifndef USR_VIMRC_FILE +# define USR_VIMRC_FILE "~/.nvimrc" +#endif + +#ifndef USR_VIMRC_FILE2 +# define USR_VIMRC_FILE2 "~/.nvim/nvimrc" +#endif + +#ifndef EXRC_FILE +# define EXRC_FILE ".exrc" +#endif + +#ifndef VIMRC_FILE +# define VIMRC_FILE ".nvimrc" +#endif + +#ifndef VIMINFO_FILE +# define VIMINFO_FILE "~/.nviminfo" +#endif + +// Default for 'backupdir'. +#ifndef DFLT_BDIR +# define DFLT_BDIR ".,~/tmp,~/" +#endif + +// Default for 'directory'. +#ifndef DFLT_DIR +# define DFLT_DIR ".,~/tmp,/var/tmp,/tmp" +#endif + +// Default for 'viewdir'. +#ifndef DFLT_VDIR +# define DFLT_VDIR "~/.nvim/view" +#endif + +#ifdef RUNTIME_GLOBAL +# define DFLT_RUNTIMEPATH "~/.nvim," RUNTIME_GLOBAL ",$VIMRUNTIME," \ + RUNTIME_GLOBAL "/after,~/.nvim/after" +#else +# define DFLT_RUNTIMEPATH \ + "~/.nvim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.nvim/after" +#endif + #endif // NVIM_OS_UNIX_DEFS_H |