From 35e78942bed148e1a23ffc7eaa50dc38d81f1af9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 4 Jun 2023 08:24:32 -0700 Subject: 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. --- autoload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload.c') 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 -- cgit v1.2.3