summaryrefslogtreecommitdiffstats
path: root/buf.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-07-12 11:29:33 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-07-12 11:29:33 -0700
commit15740ae6b6c8476cd1a9323ffd50f85a3c8ea245 (patch)
treef5eac0226a4e57e1383771c862a23efc0eddfb93 /buf.h
parenta6f6072761d124c60793325bc512048b0f31f5a3 (diff)
downloadtxr-15740ae6b6c8476cd1a9323ffd50f85a3c8ea245.tar.gz
txr-15740ae6b6c8476cd1a9323ffd50f85a3c8ea245.tar.bz2
txr-15740ae6b6c8476cd1a9323ffd50f85a3c8ea245.zip
Support weak semantics in symbol packages.
A package is weak if it holds weak references to symbols, meaning that if there are no references to a symbol other than its entry in a weak package, it can be removed from the package and reclaimed by the garbage collector. * eval.c (eval_init): Update registrations for make-package and sys:make-anon-package to reflect new optional argument. * lib.c (make_package_common): New argument weak. If it is true then both the hashes will have weak values. (make_package, make_anon_package): New optional argument weak. (obj_init): Add nil argument to calls to make_package. All the standard packages are regular, not weak. * lib.h (make_package, make_anon_package): Declarations updated. * txr.1: Documented.
Diffstat (limited to 'buf.h')
0 files changed, 0 insertions, 0 deletions