diff options
author | Michael Ennen <mike.ennen@gmail.com> | 2016-11-21 23:04:02 -0700 |
---|---|---|
committer | Michael Ennen <mike.ennen@gmail.com> | 2016-11-29 15:02:24 -0700 |
commit | 5efcefee8703a8d1d3c33e0773d3e234e42a2293 (patch) | |
tree | d21f379fab17118e9ca2cdcef14e8b8f27471f43 /src/nvim/vim.h | |
parent | 3979c6cbed6399934a06da35881e4d351c588af0 (diff) | |
download | rneovim-5efcefee8703a8d1d3c33e0773d3e234e42a2293.tar.gz rneovim-5efcefee8703a8d1d3c33e0773d3e234e42a2293.tar.bz2 rneovim-5efcefee8703a8d1d3c33e0773d3e234e42a2293.zip |
vim-patch:7.4.2071
Problem: The return value of type() is difficult to use.
Solution: Define v:t_ constants. (Ken Takata)
https://github.com/vim/vim/commit/f562e72df726c6191fa305e1c0a113f1cfb87f76
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r-- | src/nvim/vim.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h index 32eba55c18..8271abda8d 100644 --- a/src/nvim/vim.h +++ b/src/nvim/vim.h @@ -123,6 +123,14 @@ Error: configure did not run properly.Check auto/config.log. #define FAIL 0 #define NOTDONE 2 /* not OK or FAIL but skipped */ +// Type values for type(). +#define VAR_TYPE_NUMBER 0 +#define VAR_TYPE_STRING 1 +#define VAR_TYPE_FUNC 2 +#define VAR_TYPE_LIST 3 +#define VAR_TYPE_DICT 4 +#define VAR_TYPE_FLOAT 5 +#define VAR_TYPE_BOOL 6 /* * values for xp_context when doing command line completion |