summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kyheku <kaz@kylheku.com>2020-01-29 05:30:17 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-01-29 05:30:17 -0800
commit4491cf924ada98bc939e51d18ec81751cac0f5f2 (patch)
tree2e6bf956ac8e36a4eb94f1e9aa6031dacff359ca /lib.h
parent1c19f40086b23d28280334783679d00b119d8b61 (diff)
downloadtxr-4491cf924ada98bc939e51d18ec81751cac0f5f2.tar.gz
txr-4491cf924ada98bc939e51d18ec81751cac0f5f2.tar.bz2
txr-4491cf924ada98bc939e51d18ec81751cac0f5f2.zip
New function: merge-delete-package.
This is a useful function which supports the use of temporary packages over the scope of file compilation units. A file can be read under a temporary package which provides usefully customized symbol visibility consisting of an arrangement of symbols from various other packages. Then, in a single operation, thanks to this new function, that packag can be deleted and all of its local symbols (those having been newly interned over the course of the file) are transferred to some other, more permanent package. * eval.c (eval_init): merge-delete-package intrinsic registered. * lib.c (merge_delete_package): New function. * lib.h (merge_delete_package): Declared. * txr.1: Documented.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 5be2c037..d54ac735 100644
--- a/lib.h
+++ b/lib.h
@@ -899,6 +899,7 @@ val make_anon_package(void);
val packagep(val obj);
val find_package(val name);
val delete_package(val package);
+val merge_delete_package(val to, val victim);
val package_alist(void);
val package_name(val package);
val package_symbols(val package);