From 1778629d92849af84239c4b8c1940ed76fd87b8a Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 20 Dec 2022 12:17:32 +0100 Subject: Renamed (reverted) cstr_new(lit) => cstr_lit(lit). Old name is deprecated (supported for now). --- examples/csmap_erase.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/csmap_erase.c') diff --git a/examples/csmap_erase.c b/examples/csmap_erase.c index 97f45779..48d8ceef 100644 --- a/examples/csmap_erase.c +++ b/examples/csmap_erase.c @@ -20,11 +20,11 @@ int main() c_auto (mymap, m1) { // Fill in some data to test with, one at a time - mymap_insert(&m1, 1, cstr_new("A")); - mymap_insert(&m1, 2, cstr_new("B")); - mymap_insert(&m1, 3, cstr_new("C")); - mymap_insert(&m1, 4, cstr_new("D")); - mymap_insert(&m1, 5, cstr_new("E")); + mymap_insert(&m1, 1, cstr_lit("A")); + mymap_insert(&m1, 2, cstr_lit("B")); + mymap_insert(&m1, 3, cstr_lit("C")); + mymap_insert(&m1, 4, cstr_lit("D")); + mymap_insert(&m1, 5, cstr_lit("E")); puts("Starting data of map m1 is:"); printmap(m1); -- cgit v1.2.3