lib/kvec: Remove useless type argument from kv_push macros

This commit is contained in:
ZyX
2016-05-01 04:53:15 +03:00
parent 748898b4dd
commit 8cfb272c74
7 changed files with 65 additions and 51 deletions

View File

@@ -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})