diff options
| author | Tyge Lovset <[email protected]> | 2023-01-04 22:55:08 +0100 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-01-04 22:55:08 +0100 |
| commit | f89ba241b30a9335a8354c435c377cfcf9841de2 (patch) | |
| tree | 233b72f88793dbd4fcb93ff3965b83986ea01eef /misc/examples | |
| parent | 3812789b283f59d2cc4ca0bd32c4edbd7742ef99 (diff) | |
| download | STC-modified-f89ba241b30a9335a8354c435c377cfcf9841de2.tar.gz STC-modified-f89ba241b30a9335a8354c435c377cfcf9841de2.zip | |
Removed the experimental c_AUTODROP macro.
Diffstat (limited to 'misc/examples')
| -rw-r--r-- | misc/examples/astar.c | 4 | ||||
| -rw-r--r-- | misc/examples/forfilter.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/misc/examples/astar.c b/misc/examples/astar.c index e308eb78..828de8ce 100644 --- a/misc/examples/astar.c +++ b/misc/examples/astar.c @@ -159,7 +159,9 @@ main(void) int width = cstr_find(&maze, "\n") + 1; c_WITH (cdeq_point path = astar(&maze, width), cdeq_point_drop(&path)) { - c_FOREACH (it, cdeq_point, path) cstr_data(&maze)[point_index(it.ref)] = 'x'; + c_FOREACH (it, cdeq_point, path) + cstr_data(&maze)[point_index(it.ref)] = 'x'; + printf("%s", cstr_str(&maze)); } } diff --git a/misc/examples/forfilter.c b/misc/examples/forfilter.c index c0a4ccad..280fdc9c 100644 --- a/misc/examples/forfilter.c +++ b/misc/examples/forfilter.c @@ -22,7 +22,8 @@ void demo1(void) { c_AUTO (IVec, vec) { - c_FORLIST (i, int, {0, 1, 2, 3, 4, 5, 80, 6, 7, 80, 8, 9, 80, 10, 11, 12, 13, 14, 15, 80, 16, 17}) + c_FORLIST (i, int, {0, 1, 2, 3, 4, 5, 80, 6, 7, 80, 8, 9, 80, + 10, 11, 12, 13, 14, 15, 80, 16, 17}) IVec_push(&vec, *i.ref); puts("demo1:"); |
