aboutsummaryrefslogtreecommitdiff
path: root/env.h
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2014-05-15 22:51:16 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2014-05-15 22:51:16 +0300
commit043cddd93a65930c534f4170ed517bb1f76fd3ae (patch)
tree3686922f08845bb53b5a80557bd62133ee86bdbb /env.h
parenta2ed9c63f26f5cd767ac6c1d4073cdaa08a168b4 (diff)
downloadlispish-043cddd93a65930c534f4170ed517bb1f76fd3ae.tar.gz
lispish-043cddd93a65930c534f4170ed517bb1f76fd3ae.zip
add env functions
Diffstat (limited to 'env.h')
-rw-r--r--env.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/env.h b/env.h
new file mode 100644
index 0000000..6fcf8cc
--- /dev/null
+++ b/env.h
@@ -0,0 +1,16 @@
+#ifndef ENV_H
+#define ENV_H
+
+struct list;
+struct atom;
+
+struct list *env_new();
+struct atom *env_lookup(struct list *env, const char *symbol);
+struct list *env_extend(struct list *env, int count, ...); //const char *symbol, struct atom *value
+// struct list *env_extend_env(struct list *enva, struct list *envb);
+int env_set(struct list *env, const char *symbol,
+ struct atom *value);
+void env_free(struct list *env);
+struct list *env_clone(struct list *env);
+
+#endif