From eb0cc2a62e9ac443e056918545105d9d9522b85a Mon Sep 17 00:00:00 2001 From: Dundar Goc Date: Fri, 6 May 2022 00:38:20 +0200 Subject: refactor: move macro definiton outside of enums Uncrustify version 0.75 assumes the macro inside the enum is an enum element, and thus adds a comma after it. This breaks neovim and makes it impossible to build it. --- src/nvim/eval.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/eval.h') diff --git a/src/nvim/eval.h b/src/nvim/eval.h index c81b31aba9..101f6d9176 100644 --- a/src/nvim/eval.h +++ b/src/nvim/eval.h @@ -185,8 +185,8 @@ typedef enum { kMPArray, kMPMap, kMPExt, -#define LAST_MSGPACK_TYPE kMPExt } MessagePackType; +#define LAST_MSGPACK_TYPE kMPExt /// Array mapping values from MessagePackType to corresponding list pointers extern const list_T *eval_msgpack_type_lists[LAST_MSGPACK_TYPE + 1]; -- cgit