summaryrefslogtreecommitdiffstats
path: root/autoload.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-06-04 08:24:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-06-04 08:24:32 -0700
commit35e78942bed148e1a23ffc7eaa50dc38d81f1af9 (patch)
tree275bd5b19a853f54f61c1eb2840b99308e1af2da /autoload.c
parentf73ef8182bebb9344d445edbb2f210ada03c8469 (diff)
downloadtxr-35e78942bed148e1a23ffc7eaa50dc38d81f1af9.tar.gz
txr-35e78942bed148e1a23ffc7eaa50dc38d81f1af9.tar.bz2
txr-35e78942bed148e1a23ffc7eaa50dc38d81f1af9.zip
compiler: new function, clean-file.
This function simplifies cleaning, by allowing a file to be cleaned to be identified in much the same way as an input file to load or compile-file. * autoload.c (compiler_set_entries): The clean-file symbol is interned and becomes an autoload trigger for the compiler module. * stdlib/compiler.tl (clean-file): New function. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'autoload.c')
-rw-r--r--autoload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload.c b/autoload.c
index 2784dd4c..a8b5de56 100644
--- a/autoload.c
+++ b/autoload.c
@@ -658,7 +658,7 @@ static val compiler_set_entries(val fun)
};
val name[] = {
lit("compile-toplevel"), lit("compile"), lit("compile-file"),
- lit("compile-update-file"),
+ lit("compile-update-file"), lit("clean-file"),
lit("with-compilation-unit"), lit("dump-compiled-objects"),
lit("with-compile-opts"), lit("compiler-let"),
nil