mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
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.
This commit is contained in:
@@ -185,8 +185,8 @@ typedef enum {
|
|||||||
kMPArray,
|
kMPArray,
|
||||||
kMPMap,
|
kMPMap,
|
||||||
kMPExt,
|
kMPExt,
|
||||||
#define LAST_MSGPACK_TYPE kMPExt
|
|
||||||
} MessagePackType;
|
} MessagePackType;
|
||||||
|
#define LAST_MSGPACK_TYPE kMPExt
|
||||||
|
|
||||||
/// Array mapping values from MessagePackType to corresponding list pointers
|
/// Array mapping values from MessagePackType to corresponding list pointers
|
||||||
extern const list_T *eval_msgpack_type_lists[LAST_MSGPACK_TYPE + 1];
|
extern const list_T *eval_msgpack_type_lists[LAST_MSGPACK_TYPE + 1];
|
||||||
|
@@ -151,8 +151,8 @@ typedef enum {
|
|||||||
kSDItemBufferList = 9, ///< Buffer list.
|
kSDItemBufferList = 9, ///< Buffer list.
|
||||||
kSDItemLocalMark = 10, ///< Buffer-local mark.
|
kSDItemLocalMark = 10, ///< Buffer-local mark.
|
||||||
kSDItemChange = 11, ///< Item from buffer change list.
|
kSDItemChange = 11, ///< Item from buffer change list.
|
||||||
#define SHADA_LAST_ENTRY ((uint64_t)kSDItemChange)
|
|
||||||
} ShadaEntryType;
|
} ShadaEntryType;
|
||||||
|
#define SHADA_LAST_ENTRY ((uint64_t)kSDItemChange)
|
||||||
|
|
||||||
/// Possible results when reading ShaDa file
|
/// Possible results when reading ShaDa file
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
Reference in New Issue
Block a user