aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-01 01:47:37 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-01 01:47:37 -0500
commit1d995bb35706c67b87280244fce6ebdcd2e7acb5 (patch)
tree48fb61734f6adf59ee0c38df1450358ad7ce47dd /src/nvim/vim.h
parent5ee87c68b792b4a704200b4e51ba948833b9cbfb (diff)
parent228d236bdfd85721840e7ea7935fe0060a65fa93 (diff)
downloadrneovim-1d995bb35706c67b87280244fce6ebdcd2e7acb5.tar.gz
rneovim-1d995bb35706c67b87280244fce6ebdcd2e7acb5.tar.bz2
rneovim-1d995bb35706c67b87280244fce6ebdcd2e7acb5.zip
Merge pull request #4013 from watiko/vim-increment
Vim patches related to increment and marks
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h10
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