diff options
author | ZyX <kp-pav@yandex.ru> | 2015-08-08 03:50:56 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-08 22:00:27 +0300 |
commit | aea7f6aa723e1fca3cab1294731f1b828eb59f88 (patch) | |
tree | c3cc187d384f7dc2d2336f16a7a2d1c63e7bdf48 | |
parent | fce9590cfc128baab97a03baa70af2368c6ed23a (diff) | |
download | rneovim-aea7f6aa723e1fca3cab1294731f1b828eb59f88.tar.gz rneovim-aea7f6aa723e1fca3cab1294731f1b828eb59f88.tar.bz2 rneovim-aea7f6aa723e1fca3cab1294731f1b828eb59f88.zip |
ex_getln: Refactor HIST_\* list of macros to enum
-rw-r--r-- | src/nvim/ex_getln.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/nvim/ex_getln.h b/src/nvim/ex_getln.h index 3bfd6a8aac..c537d681c6 100644 --- a/src/nvim/ex_getln.h +++ b/src/nvim/ex_getln.h @@ -24,15 +24,17 @@ #define WILD_ESCAPE 128 #define WILD_ICASE 256 -/* - * There are four history tables: - */ -#define HIST_CMD 0 /* colon commands */ -#define HIST_SEARCH 1 /* search commands */ -#define HIST_EXPR 2 /* expressions (from entering = register) */ -#define HIST_INPUT 3 /* input() lines */ -#define HIST_DEBUG 4 /* debug commands */ -#define HIST_COUNT 5 /* number of history tables */ +/// Present history tables +typedef enum { + HIST_CMD, ///< Colon commands. + HIST_SEARCH, ///< Search commands. + HIST_EXPR, ///< Expressions (e.g. from entering = register). + HIST_INPUT, ///< input() lines. + HIST_DEBUG, ///< Debug commands. +} HistoryType; + +/// Number of history tables +#define HIST_COUNT (HIST_DEBUG + 1) typedef char_u *(*CompleteListItemGetter)(expand_T *, int); |