mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 21:36:05 +00:00
lib/kvec: Remove useless type argument from kv_push macros
This commit is contained in:
@@ -62,12 +62,10 @@
|
||||
#define NIL ((Object) {.type = kObjectTypeNil})
|
||||
|
||||
#define PUT(dict, k, v) \
|
||||
kv_push(KeyValuePair, \
|
||||
dict, \
|
||||
((KeyValuePair) {.key = cstr_to_string(k), .value = v}))
|
||||
kv_push(dict, ((KeyValuePair) { .key = cstr_to_string(k), .value = v }))
|
||||
|
||||
#define ADD(array, item) \
|
||||
kv_push(Object, array, item)
|
||||
kv_push(array, item)
|
||||
|
||||
#define STATIC_CSTR_AS_STRING(s) ((String) {.data = s, .size = sizeof(s) - 1})
|
||||
|
||||
|
Reference in New Issue
Block a user