mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-08 21:20:19 +02:00
Reimplement guardians in Scheme
Also, shunt them off to a module, and deprecate the C interface. * module/ice-9/guardians.scm: New file. * am/bootstrap.am (SOURCES): Add new file. * libguile.h: Remove guardians.h include. * libguile/Makefile.am (libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES): (DOT_X_FILES): (DOT_DOC_FILES): (modinclude_HEADERS): Remove guardians.[ch] files. * libguile/init.c (scm_i_init_guile): Remove guardians. * libguile/deprecated.h: * libguile/deprecated.c (scm_make_guardian): Deprecate. * module/ice-9/deprecated.scm: Add make-guardian shim. * module/oop/goops.scm (<guardian>): Remove class; they no longer have a tc16. * module/ice-9/popen.scm: Add guardians module. * test-suite/tests/eval.test: * test-suite/tests/fluids.test: * test-suite/tests/gc.test: * test-suite/tests/guardians.test: * test-suite/tests/threads.test: * test-suite/tests/types.test: Use the guardians module.
This commit is contained in:
parent
b1d7d3538a
commit
66f9815c3f
19 changed files with 156 additions and 448 deletions
|
@ -80,7 +80,6 @@
|
|||
#include "gettext.h"
|
||||
#include "goops.h"
|
||||
#include "gsubr.h"
|
||||
#include "guardians.h"
|
||||
#include "hash.h"
|
||||
#include "hashtab.h"
|
||||
#include "hooks.h"
|
||||
|
@ -460,7 +459,6 @@ scm_i_init_guile (struct gc_stack_addr base)
|
|||
scm_init_weak_set ();
|
||||
scm_init_weak_table ();
|
||||
scm_init_weak_vectors ();
|
||||
scm_init_guardians (); /* requires smob_prehistory */
|
||||
scm_init_standard_ports (); /* Requires fports */
|
||||
scm_init_expand (); /* Requires structs */
|
||||
scm_init_memoize (); /* Requires smob_prehistory */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue