diff options
| author | Tyge Løvset <[email protected]> | 2020-09-15 23:12:58 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-09-15 23:12:58 +0200 |
| commit | 0ce57669673a5a22d8207ec884bcebb97cb18448 (patch) | |
| tree | d76c4b38431efee766d97ba572fa3127a3e05976 /examples/complex.c | |
| parent | f4435af2fc9e9187f7be0149c2eb916db27cb257 (diff) | |
| download | STC-modified-0ce57669673a5a22d8207ec884bcebb97cb18448.tar.gz STC-modified-0ce57669673a5a22d8207ec884bcebb97cb18448.zip | |
Simplified declare_ statement e.g. c_cmap(...)
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 f129884a..d3f2cf4e 100644 --- a/examples/complex.c +++ b/examples/complex.c @@ -5,10 +5,10 @@ void check_destroy(float* v) {printf("destroy %g\n", *v);}
-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);
+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);
int main() {
int xdim = 4, ydim = 6;
|
