aboutsummaryrefslogtreecommitdiff
path: root/eval.h
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2014-05-17 12:37:09 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2014-05-17 12:37:09 +0300
commit2836fa60045bcdd8c1c8c5ed775d711cc7f385a9 (patch)
tree7892216d6ae7f0c51bd6c147dadc0bb88f06070c /eval.h
parent6814f6b99562620e70538787b6f8d66c80f7b990 (diff)
downloadlispish-2836fa60045bcdd8c1c8c5ed775d711cc7f385a9.tar.gz
lispish-2836fa60045bcdd8c1c8c5ed775d711cc7f385a9.zip
refactor code to use LIST from sys/queue.h
It's now easier and more natural to work with the code. :-P
Diffstat (limited to 'eval.h')
-rw-r--r--eval.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/eval.h b/eval.h
index eab225d..25a2f33 100644
--- a/eval.h
+++ b/eval.h
@@ -1,12 +1,10 @@
#ifndef EVAL_H
#define EVAL_H
-struct list;
+struct atom;
+struct env;
-struct list *eval(struct list *expr);
-struct list *eval_str(const char *expr);
-
-struct list *eval_env(struct list *expr, struct list *env);
-struct list *eval_str_env(const char *expr, struct list *env);
+struct atom *eval(struct atom *expr, struct env *env);
+struct atom *eval_str(const char *expr, struct env *env);
#endif