summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
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()
{