summaryrefslogtreecommitdiffhomepage
path: root/examples/shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shape.c')
-rw-r--r--examples/shape.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/shape.c b/examples/shape.c
index b052d921..4c2a7542 100644
--- a/examples/shape.c
+++ b/examples/shape.c
@@ -145,11 +145,11 @@ int main(void)
Polygon* pol1 = Polygon_new();
Polygon* pol2 = Polygon_new();
- c_apply(p, Polygon_addPoint(pol1, *p), Point,
- {{50, 72}, {123, 73}, {127, 201}, {828, 333}});
+ c_forarray (Point, p, {{50, 72}, {123, 73}, {127, 201}, {828, 333}})
+ Polygon_addPoint(pol1, *p);
- c_apply(p, Polygon_addPoint(pol2, *p), Point,
- {{5, 7}, {12, 7}, {12, 20}, {82, 33}, {17, 56}});
+ c_forarray (Point, p, {{5, 7}, {12, 7}, {12, 20}, {82, 33}, {17, 56}})
+ Polygon_addPoint(pol2, *p);
Shapes_push(&shapes, &tri1->shape);
Shapes_push(&shapes, &pol1->shape);