-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed forgotten old deq_api.md (replaced by deque_api.h)
Moved mapmap.c from sortedmaps to hashmaps example folder.
- Loading branch information
Showing
4 changed files
with
4 additions
and
140 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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")); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ foreach sample : [ | |
'birthday', | ||
'books', | ||
'hashmap', | ||
'mapmap', | ||
'new_map', | ||
'phonebook', | ||
'unordered_set', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
foreach sample : [ | ||
'gauss2', | ||
'listmap', | ||
'mapmap', | ||
'multimap', | ||
'new_smap', | ||
'smap_erase', | ||
|