summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-06-17 22:21:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-06-17 22:21:42 -0700
commitb41b2cc220d9ba53024045fd3f84cd7be495d6a4 (patch)
tree75a7d2bcacb30513f05c15da0e62e71a9367e13f /eval.c
parent90166275e015baddb82e56203b73bf5e1b8014ab (diff)
downloadtxr-b41b2cc220d9ba53024045fd3f84cd7be495d6a4.tar.gz
txr-b41b2cc220d9ba53024045fd3f84cd7be495d6a4.tar.bz2
txr-b41b2cc220d9ba53024045fd3f84cd7be495d6a4.zip
Adding anaphoric ifa macro.
* Makefile (install): Install .tl files present in stdlib directory. (INSTALL): Handle argument 2 being a list. * eval.c (load): New function. * eval.h (load): Declared. * lisplib.c (ifa_set_entries, ifa_instantiate): New functions to lazily load ifa.tl. (lisplib_init): Register new functions. * txr.c (stdlib_path): New variable. (sysroot_init): Store the stdlib path in stdlib_path. * txr.h (stdlib_path): Declared. * share/txr/stdlib/ifa.tl: New file.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 482a26bb..41b33865 100644
--- a/eval.c
+++ b/eval.c
@@ -2855,6 +2855,11 @@ static val me_load(val form, val menv)
return list(sys_load_s, name, list(quote_s, source_loc(form), nao), nao);
}
+val load(val target)
+{
+ return sys_load(target, nil);
+}
+
static val expand_catch_clause(val form, val menv)
{
val sym = first(form);