summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-02-17 20:30:25 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-02-17 20:30:25 -0800
commit44a98cac667e57d5d9d05cb0a2c189dea03ebabe (patch)
tree3ac14e73699b502c03a91674ddf9033801f36e77
parentc27e986b91fe7db72ae87f731be84fec0e9fab53 (diff)
downloadtxr-44a98cac667e57d5d9d05cb0a2c189dea03ebabe.tar.gz
txr-44a98cac667e57d5d9d05cb0a2c189dea03ebabe.tar.bz2
txr-44a98cac667e57d5d9d05cb0a2c189dea03ebabe.zip
compiler: autoload on sys:*in-compilation-unit*.
The compiler module contains the with-compilation-unit macro; if that macro is used, it is auto-loaded. However, when a file that uses with-compilation-unit is compiled, the macro is gone; its expansion refers to the sys:*in-compilation-unit* which is defined in the compiler module also. However, there is no autoload set up for it. * lisplib.c (compiler_set_entries): Add sys:*in-compilation-unit* to the list of symbols that trigger autoloading.
-rw-r--r--lisplib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisplib.c b/lisplib.c
index 2edee144..a8d264d2 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -729,7 +729,7 @@ static val compiler_instantiate(val set_fun)
static val compiler_set_entries(val dlt, val fun)
{
val sys_name[] = {
- lit("compiler"),
+ lit("compiler"), lit("*in-compilation-unit*"),
nil
};
val name[] = {