Skip to content

Commit

Permalink
Removed forgotten old deq_api.md (replaced by deque_api.h)
Browse files Browse the repository at this point in the history
Moved mapmap.c from sortedmaps to hashmaps example folder.
  • Loading branch information
tylov committed Jan 15, 2025
1 parent ef322ae commit c6a82f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 140 deletions.
136 changes: 0 additions & 136 deletions docs/deq_api.md

This file was deleted.

6 changes: 3 additions & 3 deletions examples/sortedmaps/mapmap.c → examples/hashmaps/mapmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ int main(void)
add(&map, "Dennis Kay", "[email protected]", "Marketing");
add(&map, "Anne Dickens", "[email protected]", "Development");

for (c_each(i, Departments, map))
for (c_each_kv(name, email, People, i.ref->second))
printf("%s: %s - %s\n", cstr_str(&i.ref->first), cstr_str(name), cstr_str(email));
for (c_each_kv(dep, people, Departments, map))
for (c_each_kv(name, email, People, *people))
printf("%s: %s - %s\n", cstr_str(dep), cstr_str(name), cstr_str(email));
puts("");

printf("found Nick Denton: %d\n", contains(&map, "Nick Denton"));
Expand Down
1 change: 1 addition & 0 deletions examples/hashmaps/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ foreach sample : [
'birthday',
'books',
'hashmap',
'mapmap',
'new_map',
'phonebook',
'unordered_set',
Expand Down
1 change: 0 additions & 1 deletion examples/sortedmaps/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
foreach sample : [
'gauss2',
'listmap',
'mapmap',
'multimap',
'new_smap',
'smap_erase',
Expand Down

0 comments on commit c6a82f4

Please sign in to comment.