diff options
| author | Tyge Løvset <[email protected]> | 2020-09-15 22:43:41 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-09-15 22:43:41 +0200 |
| commit | f4435af2fc9e9187f7be0149c2eb916db27cb257 (patch) | |
| tree | 117429619290d165b7a3001f21f3c0e7f37a1045 /examples/complex.c | |
| parent | f539099575e14aea9f2e043b9af33d05c47399ad (diff) | |
| download | STC-modified-f4435af2fc9e9187f7be0149c2eb916db27cb257.tar.gz STC-modified-f4435af2fc9e9187f7be0149c2eb916db27cb257.zip | |
New API Change.
Diffstat (limited to 'examples/complex.c')
| -rw-r--r-- | examples/complex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/complex.c b/examples/complex.c index 151824e2..f129884a 100644 --- a/examples/complex.c +++ b/examples/complex.c @@ -5,10 +5,10 @@ void check_destroy(float* v) {printf("destroy %g\n", *v);}
-declare_carray(f, float, check_destroy); // normally omit the last argument - float type need no destroy.
-declare_clist(y, carray2f, carray2f_destroy, c_no_compare);
-declare_cmap(g, int, clist_y, clist_y_destroy);
-declare_cmap_strkey(s, cmap_g, cmap_g_destroy);
+cdef_carray(f, float, check_destroy); // normally omit the last argument - float type need no destroy.
+cdef_clist(y, carray2f, carray2f_destroy, c_no_compare);
+cdef_cmap(g, int, clist_y, clist_y_destroy);
+cdef_cmap_strkey(s, cmap_g, cmap_g_destroy);
int main() {
int xdim = 4, ydim = 6;
|
