mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 13:56:05 +00:00
*: Fix errors from new linter checks
This commit is contained in:
@@ -8,20 +8,20 @@
|
||||
#include "nvim/msgpack_rpc/defs.h"
|
||||
#include "nvim/bufhl_defs.h"
|
||||
|
||||
#define MAP_DECLS(T, U) \
|
||||
KHASH_DECLARE(T##_##U##_map, T, U) \
|
||||
\
|
||||
typedef struct { \
|
||||
khash_t(T##_##U##_map) *table; \
|
||||
} Map(T, U); \
|
||||
\
|
||||
Map(T, U) *map_##T##_##U##_new(void); \
|
||||
void map_##T##_##U##_free(Map(T, U) *map); \
|
||||
U map_##T##_##U##_get(Map(T, U) *map, T key); \
|
||||
bool map_##T##_##U##_has(Map(T, U) *map, T key); \
|
||||
U map_##T##_##U##_put(Map(T, U) *map, T key, U value); \
|
||||
U *map_##T##_##U##_ref(Map(T, U) *map, T key, bool put); \
|
||||
U map_##T##_##U##_del(Map(T, U) *map, T key); \
|
||||
#define MAP_DECLS(T, U) \
|
||||
KHASH_DECLARE(T##_##U##_map, T, U) \
|
||||
\
|
||||
typedef struct { \
|
||||
khash_t(T##_##U##_map) *table; \
|
||||
} Map(T, U); \
|
||||
\
|
||||
Map(T, U) *map_##T##_##U##_new(void); \
|
||||
void map_##T##_##U##_free(Map(T, U) *map); \
|
||||
U map_##T##_##U##_get(Map(T, U) *map, T key); \
|
||||
bool map_##T##_##U##_has(Map(T, U) *map, T key); \
|
||||
U map_##T##_##U##_put(Map(T, U) *map, T key, U value); \
|
||||
U *map_##T##_##U##_ref(Map(T, U) *map, T key, bool put); \
|
||||
U map_##T##_##U##_del(Map(T, U) *map, T key); \
|
||||
void map_##T##_##U##_clear(Map(T, U) *map);
|
||||
|
||||
MAP_DECLS(int, int)
|
||||
|
Reference in New Issue
Block a user