diff options
author | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-06 17:36:31 +0200 |
---|---|---|
committer | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-16 19:05:34 +0200 |
commit | 0564f781ab27aa7b419543f7867da6e761e179c5 (patch) | |
tree | c76de7737ca02b7acd0082c877a15fc6d38fcc5a | |
parent | e288ddaee7d9c186c5829178691dbfac507d757d (diff) | |
download | rneovim-0564f781ab27aa7b419543f7867da6e761e179c5.tar.gz rneovim-0564f781ab27aa7b419543f7867da6e761e179c5.tar.bz2 rneovim-0564f781ab27aa7b419543f7867da6e761e179c5.zip |
vim: move disptick_T from vim.h to syntax_defs.h
Make vim.h smaller, bit by bit.
-rw-r--r-- | src/nvim/globals.h | 1 | ||||
-rw-r--r-- | src/nvim/syntax.c | 1 | ||||
-rw-r--r-- | src/nvim/syntax_defs.h | 2 | ||||
-rw-r--r-- | src/nvim/vim.h | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index cdfa882a3e..1f402f3ef9 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -13,6 +13,7 @@ #include "nvim/ex_eval.h" #include "nvim/mbyte.h" #include "nvim/menu.h" +#include "nvim/syntax_defs.h" /* * definition of global variables diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 51aeda7293..7dd3453d16 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -42,6 +42,7 @@ #include "nvim/regexp.h" #include "nvim/screen.h" #include "nvim/strings.h" +#include "nvim/syntax_defs.h" #include "nvim/term.h" #include "nvim/ui.h" #include "nvim/os/os.h" diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h index d8ef007ffc..11e342f870 100644 --- a/src/nvim/syntax_defs.h +++ b/src/nvim/syntax_defs.h @@ -9,6 +9,8 @@ # define SST_DIST 16 /* normal distance between entries */ # define SST_INVALID (synstate_T *)-1 /* invalid syn_state pointer */ +typedef unsigned short disptick_T; /* display tick type */ + /* struct passed to in_id_list() */ struct sp_syn { int inc_tag; /* ":syn include" unique tag */ diff --git a/src/nvim/vim.h b/src/nvim/vim.h index 5cde6e7989..6bdc58c54a 100644 --- a/src/nvim/vim.h +++ b/src/nvim/vim.h @@ -355,8 +355,6 @@ enum { #define PERROR(msg) \ (void) emsg3((char_u *) "%s: %s", (char_u *)msg, (char_u *)strerror(errno)) -typedef unsigned short disptick_T; /* display tick type */ - #define SHOWCMD_COLS 10 /* columns needed by shown command */ #define STL_MAX_ITEM 80 /* max nr of %<flag> in statusline */ |