dict_ref & dict_cref returns a pointer to struct pair_s instead of pair_t (which
is an array of struct pair_s). This will break API compatibility. However: it makes the user code cleaner as a level of indirection is removed. it uniformizes with the OA dict version
This commit is contained in:
1 parent
8265ccbb42
commit
8914d336a0
7 files changed
+32
-33
No files matched your search
+2
-2
@@ -256,9 +256,9 @@ static void test1(void)
|
||||
size_t s = 0;
|
||||
bool check1 = false, check2= false;
|
||||
for M_EACH(r, dict, DICT_OPLIST(dict_str)) {
|
||||
if (string_cmp_str((*r)->key, "README") == 0)
|
||||
if (string_cmp_str(r->key, "README") == 0)
|
||||
check1 = true;
|
||||
if (string_cmp_str((*r)->value, "BSD3") == 0)
|
||||
if (string_cmp_str(r->value, "BSD3") == 0)
|
||||
check2 = true;
|
||||
s++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user