summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-04-23 20:18:16 +0200
committerTyge Løvset <[email protected]>2021-04-23 20:18:16 +0200
commitb64b213895957de9eed31797295ccbd412ae8e71 (patch)
treeb8ca0c3c15c613816fbe3dc2f28f2bcdd63e05be /examples
parent7b85cf6e734fe312dd4b762282ff33010fe24bf3 (diff)
downloadSTC-modified-b64b213895957de9eed31797295ccbd412ae8e71.tar.gz
STC-modified-b64b213895957de9eed31797295ccbd412ae8e71.zip
API: Reverted to C_X_erase_at() instead of C_X_erase_it(). Sorry for the mess. Internal reorder of STC_API methods.
Diffstat (limited to 'examples')
-rw-r--r--examples/csset_erase.c2
-rw-r--r--examples/demos.c2
-rw-r--r--examples/list_erase.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/csset_erase.c b/examples/csset_erase.c
index 96bc4c98..9a05290d 100644
--- a/examples/csset_erase.c
+++ b/examples/csset_erase.c
@@ -15,7 +15,7 @@ int main()
c_foreach (k, csset_i, it, csset_i_end(&set)) printf(" %d", *k.ref); puts("");
printf("Erase values >= %d:\n", val);
- while (it.ref) it = csset_i_erase_it(&set, it);
+ while (it.ref) it = csset_i_erase_at(&set, it);
c_foreach (k, csset_i, set) printf(" %d", *k.ref); puts("");
val = 35;
diff --git a/examples/demos.c b/examples/demos.c
index f6f1a6cf..1eb74525 100644
--- a/examples/demos.c
+++ b/examples/demos.c
@@ -170,7 +170,7 @@ void mapdemo3()
printf("entry: %s: %s\n", i.ref->first.str, i.ref->second.str);
printf("size %zu: remove: Make: %s\n", cmap_str_size(table), it.ref->second.str);
//cmap_str_erase(&table, "Make");
- cmap_str_erase_it(&table, it);
+ cmap_str_erase_at(&table, it);
printf("size %zu\n", cmap_str_size(table));
c_foreach (i, cmap_str, table)
diff --git a/examples/list_erase.c b/examples/list_erase.c
index fd68b250..6e70b103 100644
--- a/examples/list_erase.c
+++ b/examples/list_erase.c
@@ -10,7 +10,7 @@ int main ()
// 10 20 30 40 50
clist_i_iter_t it = clist_i_begin(&L); // ^
clist_i_next(&it);
- it = clist_i_erase_it(&L, it); // 10 30 40 50
+ it = clist_i_erase_at(&L, it); // 10 30 40 50
// ^
clist_i_iter_t end = clist_i_end(&L); //
clist_i_next(&it);