diff options
| author | Tyge Løvset <[email protected]> | 2020-09-17 18:37:34 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-09-17 18:37:34 +0200 |
| commit | 692ab82818e2d65177e06d7717d9184b7bc27ff1 (patch) | |
| tree | 0f59d93da6d579a68c7247434cab6e6e615e5b4a /examples/complex.c | |
| parent | 92edcbf8da88b1e59c7724f2875e9e9df3383cb1 (diff) | |
| download | STC-modified-692ab82818e2d65177e06d7717d9184b7bc27ff1.tar.gz STC-modified-692ab82818e2d65177e06d7717d9184b7bc27ff1.zip | |
Fixed range methods in cvec, and renamed typename_<container>(..) to using_<container>(..).
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 0c3e5c38..12afc47c 100644 --- a/examples/complex.c +++ b/examples/complex.c @@ -5,10 +5,10 @@ void check_destroy(float* v) {printf("destroy %g\n", *v);}
-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);
+using_carray(f, float, check_destroy); // normally omit the last argument - float type need no destroy.
+using_clist(y, carray2f, carray2f_destroy, c_no_compare);
+using_cmap(g, int, clist_y, clist_y_destroy);
+using_cmap_strkey(s, cmap_g, cmap_g_destroy);
int main() {
int xdim = 4, ydim = 6;
|
