diff options
| author | Tyge Løvset <[email protected]> | 2022-12-23 23:55:10 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-12-23 23:55:10 +0100 |
| commit | d623c6c85071b9af5d607bb5d9aceceaea05220a (patch) | |
| tree | f20fc3714f86e1553d1103bed6dc8efefcbd9d6b /misc/examples/phonebook.c | |
| parent | 5f57d597cd27aef55adbcb3b452973b0c6e33667 (diff) | |
| download | STC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.tar.gz STC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.zip | |
Experimental uppercase macros.
Diffstat (limited to 'misc/examples/phonebook.c')
| -rw-r--r-- | misc/examples/phonebook.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/examples/phonebook.c b/misc/examples/phonebook.c index be068409..d0bc5b3a 100644 --- a/misc/examples/phonebook.c +++ b/misc/examples/phonebook.c @@ -32,23 +32,23 @@ void print_phone_book(cmap_str phone_book) { - c_foreach (i, cmap_str, phone_book) + c_FOREACH (i, cmap_str, phone_book) printf("%s\t- %s\n", cstr_str(&i.ref->first), cstr_str(&i.ref->second)); } int main(int argc, char **argv) { - c_auto (cset_str, names) { - c_forlist (i, const char*, {"Hello", "Cool", "True"}) + c_AUTO (cset_str, names) { + c_FORLIST (i, const char*, {"Hello", "Cool", "True"}) cset_str_emplace(&names, *i.ref); - c_foreach (i, cset_str, names) + c_FOREACH (i, cset_str, names) printf("%s ", cstr_str(i.ref)); puts(""); } - c_auto (cmap_str, phone_book) { - c_forlist (i, cmap_str_raw, { + c_AUTO (cmap_str, phone_book) { + c_FORLIST (i, cmap_str_raw, { {"Lilia Friedman", "(892) 670-4739"}, {"Tariq Beltran", "(489) 600-7575"}, {"Laiba Juarez", "(303) 885-5692"}, |
