diff options
author | watiko <service@mail.watiko.net> | 2016-01-15 15:06:12 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-01 03:47:08 +0900 |
commit | a5f361e470c816ec9258fb815befafdef52b000b (patch) | |
tree | c35c74316b7a4f1a6aa486d41eaf9fae3b122f45 /src/nvim/vim.h | |
parent | 7fc996abf6151364ec045607a6e1ab51e32920e5 (diff) | |
download | rneovim-a5f361e470c816ec9258fb815befafdef52b000b.tar.gz rneovim-a5f361e470c816ec9258fb815befafdef52b000b.tar.bz2 rneovim-a5f361e470c816ec9258fb815befafdef52b000b.zip |
vim-patch:7.4.1027
Problem: No support for binary numbers.
Solution: Add "bin" to nrformats. (Jason Schulz)
https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r-- | src/nvim/vim.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h index 2e20d48f90..5f9785a9a9 100644 --- a/src/nvim/vim.h +++ b/src/nvim/vim.h @@ -35,7 +35,15 @@ Error: configure did not run properly.Check auto/config.log. #include "nvim/os/os_defs.h" /* bring lots of system header files */ -#define NUMBUFLEN 65 // length of a buffer to store a number in ASCII +/// length of a buffer to store a number in ASCII (64 bits binary + NUL) +#define NUMBUFLEN 65 + +// flags for vim_str2nr() +#define STR2NR_BIN 1 +#define STR2NR_OCT 2 +#define STR2NR_HEX 4 +#define STR2NR_ALL (STR2NR_BIN + STR2NR_OCT + STR2NR_HEX) +#define STR2NR_FORCE 8 // only when ONE of the above is used #define MAX_TYPENR 65535 |