summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-04 14:45:34 +0100
committerTyge Løvset <[email protected]>2021-01-04 14:45:34 +0100
commite76652eda0c8e2008fd500adfcf4210e261f0583 (patch)
tree701915e4f7ba0bfe82db49c77b9de13930f5a7a7 /examples
parent19908d147f4ddd95497c96197f78e2766c1d54c8 (diff)
downloadSTC-modified-e76652eda0c8e2008fd500adfcf4210e261f0583.tar.gz
STC-modified-e76652eda0c8e2008fd500adfcf4210e261f0583.zip
Removed cmap_X_entry_t alias for cmap_X_value_t.
Diffstat (limited to 'examples')
-rw-r--r--examples/advanced.c2
-rw-r--r--examples/ex_gaussian.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/advanced.c b/examples/advanced.c
index 3f706c5c..f5a31587 100644
--- a/examples/advanced.c
+++ b/examples/advanced.c
@@ -54,7 +54,7 @@ int main()
VikingRaw lookup = {"Einar", "Norway"};
- cmap_vk_entry_t *e = cmap_vk_find(&vikings, lookup);
+ cmap_vk_value_t *e = cmap_vk_find(&vikings, lookup);
e->second += 3; // add 3 hp points to Einar
cmap_vk_emplace(&vikings, lookup, 0).first->second += 5; // add 5 more to Einar
diff --git a/examples/ex_gaussian.c b/examples/ex_gaussian.c
index bfc40363..b9228aa5 100644
--- a/examples/ex_gaussian.c
+++ b/examples/ex_gaussian.c
@@ -10,11 +10,11 @@
using_cmap(i, int, size_t);
// Declare int vector with map entries that can be sorted by map keys.
-static int compare(cmap_i_entry_t *a, cmap_i_entry_t *b) {
+static int compare(cmap_i_value_t *a, cmap_i_value_t *b) {
return c_default_compare(&a->first, &b->first);
}
// Vector: typetag 'e' for (map) entry
-using_cvec(e, cmap_i_entry_t, compare);
+using_cvec(e, cmap_i_value_t, compare);
int main()
{