From 681873e4cb6ea076b79c6c70b2df2ba4e4c19bda Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 18 Sep 2020 11:55:29 +0200 Subject: Changed _ini macro constant to _INIT, and _destroy() to _del. --- examples/list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/list.c') diff --git a/examples/list.c b/examples/list.c index abc4d5b7..c2bfec55 100644 --- a/examples/list.c +++ b/examples/list.c @@ -8,7 +8,7 @@ int main() { int k; const int n = 2000000; - clist_fx list = clist_ini; + clist_fx list = clist_INIT; crand_rng64_t eng = crand_rng64_init(1234); crand_uniform_f64_t dist = crand_uniform_f64_init(100.0f, n); int m = 0; @@ -50,5 +50,5 @@ int main() { c_foreach (i, clist_fx, it, clist_fx_end(&list)) printf(" %g", *i.get); puts(""); - clist_fx_destroy(&list); + clist_fx_del(&list); } \ No newline at end of file -- cgit v1.2.3