diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 22:40:31 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 22:40:31 +0000 |
commit | 339e2d15cc26fe86988ea06468d912a46c8d6f29 (patch) | |
tree | a6167fc8fcfc6ae2dc102f57b2473858eac34063 /src/nvim/vim_defs.h | |
parent | 067dc73729267c0262438a6fdd66e586f8496946 (diff) | |
parent | 4a8bf24ac690004aedf5540fa440e788459e5e34 (diff) | |
download | rneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.tar.gz rneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.tar.bz2 rneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.zip |
Merge remote-tracking branch 'upstream/master' into fix_repeatcmdline
Diffstat (limited to 'src/nvim/vim_defs.h')
-rw-r--r-- | src/nvim/vim_defs.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/nvim/vim_defs.h b/src/nvim/vim_defs.h new file mode 100644 index 0000000000..faf79b1c79 --- /dev/null +++ b/src/nvim/vim_defs.h @@ -0,0 +1,41 @@ +#pragma once + +// Some defines from the old feature.h +#define SESSION_FILE "Session.vim" +#define MAX_MSG_HIST_LEN 200 +#define SYS_OPTWIN_FILE "$VIMRUNTIME/optwin.vim" +#define RUNTIME_DIRNAME "runtime" + +#include "auto/config.h" + +// Check if configure correctly managed to find sizeof(int). If this failed, +// it becomes zero. This is likely a problem of not being able to run the +// test program. Other items from configure may also be wrong then! +#if (SIZEOF_INT == 0) +# error Configure did not run properly. +#endif + +// bring lots of system header files +#include "nvim/os/os_defs.h" // IWYU pragma: keep + +/// length of a buffer to store a number in ASCII (64 bits binary + NUL) +enum { NUMBUFLEN = 65, }; + +#define MAX_TYPENR 65535 + +/// Directions. +typedef enum { + kDirectionNotSet = 0, + FORWARD = 1, + BACKWARD = -1, + FORWARD_FILE = 3, + BACKWARD_FILE = -3, +} Direction; + +// return values for functions +#if !(defined(OK) && (OK == 1)) +// OK already defined to 1 in MacOS X curses, skip this +# define OK 1 +#endif +#define FAIL 0 +#define NOTDONE 2 // not OK or FAIL but skipped |