summaryrefslogtreecommitdiffhomepage
path: root/examples/astar.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-13 19:02:50 +0200
committerTyge Løvset <[email protected]>2022-08-13 19:02:50 +0200
commit9bdcf2090da121f8d0954dad35db48c7aa47b17e (patch)
treeb2d10dc4d069059434174e9cdee5251cae8ff10c /examples/astar.c
parentccb63f1abbae18657708dd8ea38e0892aa0fc48a (diff)
downloadSTC-modified-9bdcf2090da121f8d0954dad35db48c7aa47b17e.tar.gz
STC-modified-9bdcf2090da121f8d0954dad35db48c7aa47b17e.zip
Experimental: Renamed c_autovar => c_with, c_autoscope => c_scope, c_autodefer => c_defer. May or may not be reverted before V4.0 release.
Diffstat (limited to 'examples/astar.c')
-rw-r--r--examples/astar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/astar.c b/examples/astar.c
index cb498b11..4d9f2469 100644
--- a/examples/astar.c
+++ b/examples/astar.c
@@ -131,7 +131,7 @@ astar(cstr* maze, int width)
int
main(void)
{
- c_autovar (cstr maze = cstr_new(
+ c_with (cstr maze = cstr_new(
"#########################################################################\n"
"# # # # # # #\n"
"# # ######### # ##### ######### ##### ##### ##### # ! #\n"
@@ -157,7 +157,7 @@ main(void)
"#########################################################################\n"), cstr_drop(&maze))
{
int width = cstr_find(&maze, "\n") + 1;
- c_autovar (cdeq_point path = astar(&maze, width), cdeq_point_drop(&path))
+ 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';
printf("%s", cstr_str(&maze));