diff options
Diffstat (limited to 'src/nvim/sign_defs.h')
-rw-r--r-- | src/nvim/sign_defs.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/nvim/sign_defs.h b/src/nvim/sign_defs.h index 7288a48e21..4443fd8a2e 100644 --- a/src/nvim/sign_defs.h +++ b/src/nvim/sign_defs.h @@ -1,23 +1,28 @@ #ifndef NVIM_SIGN_DEFS_H #define NVIM_SIGN_DEFS_H +#include "nvim/pos.h" + // signs: line annotations typedef struct signlist signlist_T; struct signlist { - int id; /* unique identifier for each placed sign */ - linenr_T lnum; /* line number which has this sign */ - int typenr; /* typenr of sign */ - signlist_T *next; /* next signlist entry */ + int id; // unique identifier for each placed sign + linenr_T lnum; // line number which has this sign + int typenr; // typenr of sign + signlist_T *next; // next signlist entry }; -/* type argument for buf_getsigntype() */ -#define SIGN_ANY 0 -#define SIGN_LINEHL 1 -#define SIGN_ICON 2 -#define SIGN_TEXT 3 +// type argument for buf_getsigntype() and sign_get_attr() +typedef enum { + SIGN_ANY, + SIGN_LINEHL, + SIGN_ICON, + SIGN_TEXT, + SIGN_NUMHL, +} SignType; |