summaryrefslogtreecommitdiffhomepage
path: root/examples/complex.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-16 09:59:18 +0200
committerTyge Løvset <[email protected]>2020-09-16 09:59:18 +0200
commit47b5b5ce53ed4607bf557e2b53a1286bc8041e94 (patch)
tree71219fd9554c957b4e120d34096318fc11f8fc80 /examples/complex.c
parentd3d68271e1c4ff0f56d06730f79349197f46850c (diff)
downloadSTC-modified-47b5b5ce53ed4607bf557e2b53a1286bc8041e94.tar.gz
STC-modified-47b5b5ce53ed4607bf557e2b53a1286bc8041e94.zip
Changed earlier declare_<container>(..) macro to typedef_<container>(..)
Diffstat (limited to 'examples/complex.c')
-rw-r--r--examples/complex.c8
1 files changed, 4 insertions, 4 deletions
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;