summaryrefslogtreecommitdiff
path: root/module/ice-9/weak-tables.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/ice-9/weak-tables.scm')
-rw-r--r--module/ice-9/weak-tables.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/module/ice-9/weak-tables.scm b/module/ice-9/weak-tables.scm
new file mode 100644
index 000000000..924ceec23
--- /dev/null
+++ b/module/ice-9/weak-tables.scm
@@ -0,0 +1,35 @@
+;;; Copyright (C) 2025 Free Software Foundation, Inc.
+;;;
+;;; This library is free software: you can redistribute it and/or modify
+;;; it under the terms of the GNU Lesser General Public License as
+;;; published by the Free Software Foundation, either version 3 of the
+;;; License, or (at your option) any later version.
+;;;
+;;; This library is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; Lesser General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU Lesser General Public
+;;; License along with this program. If not, see
+;;; <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+;;;
+;;;
+;;; Code:
+
+
+(define-module (ice-9 weak-tables)
+ ;; FIXME: Change to #:export when deprecated code removed.
+ #:replace (make-weak-key-hash-table
+ make-weak-value-hash-table
+ make-doubly-weak-hash-table
+
+ weak-key-hash-table?
+ weak-value-hash-table?
+ doubly-weak-hash-table?))
+
+(eval-when (expand load eval)
+ (load-extension (string-append "libguile-" (effective-version))
+ "scm_init_weak_tables"))