From 47b5b5ce53ed4607bf557e2b53a1286bc8041e94 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 16 Sep 2020 09:59:18 +0200 Subject: Changed earlier declare_(..) macro to typedef_(..) --- examples/complex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/complex.c') diff --git a/examples/complex.c b/examples/complex.c index aa746b90..e0bc5200 100644 --- a/examples/complex.c +++ b/examples/complex.c @@ -5,10 +5,10 @@ void check_destroy(float* v) {printf("destroy %g\n", *v);} -c_carray(f, float, check_destroy); // normally omit the last argument - float type need no destroy. -c_clist(y, carray2f, carray2f_destroy, c_no_compare); -c_cmap(g, int, clist_y, clist_y_destroy); -c_cmap_strkey(s, cmap_g, cmap_g_destroy); +typedef_carray(f, float, check_destroy); // normally omit the last argument - float type need no destroy. +typedef_clist(y, carray2f, carray2f_destroy, c_no_compare); +typedef_cmap(g, int, clist_y, clist_y_destroy); +typedef_cmap_strkey(s, cmap_g, cmap_g_destroy); int main() { int xdim = 4, ydim = 6; -- cgit v1.2.3