aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-12-26 13:48:58 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-12-26 13:48:58 +0300
commitcd4d1f3d31a9a9100c50a8158ee58f69aa87a42e (patch)
treed373d89ecacf82331df3317be712b8dbc256ac68 /examples
parent23350cf68d90a715bbd657bbf0f26f581fb93e83 (diff)
downloadcsx-cd4d1f3d31a9a9100c50a8158ee58f69aa87a42e.tar
csx-cd4d1f3d31a9a9100c50a8158ee58f69aa87a42e.tar.xz
csx-cd4d1f3d31a9a9100c50a8158ee58f69aa87a42e.zip
.
Diffstat (limited to 'examples')
-rw-r--r--examples/ackermann.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/ackermann.c b/examples/ackermann.c
index 97aab40..d778c8c 100644
--- a/examples/ackermann.c
+++ b/examples/ackermann.c
@@ -4,10 +4,13 @@
int main()
{
+ char *m;
+ char *n;
+ char *ackermann;
csxbind_init();
- char *m = N("m");
- char *n = N("n");
- char *ackermann = N("ackermann");
+ m = N("m");
+ n = N("n");
+ ackermann = N("ackermann");
printf("%d\n", *(int *)R(L(_do,
L(set, ackermann, L(fn, L(m, n, 0),
L(_if,