mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-05 23:20:38 +02:00
Add (system finalizers)
This will replace an internal interface in (system foreign-objects). * module/system/finalizers.scm: New file. * am/bootstrap.am (SOURCES): Add new file. * libguile/foreign-object.h: * libguile/foreign-object.c (invoke_finalizer): (sys_add_finalizer_x): (scm_init_foreign_object): (scm_register_foreign_object): Remove. * libguile/init.c (scm_i_init_guile): Register finalizers instead of foreign-object. * module/system/foreign-object.scm (allocate-instance): Use finalizers module. * libguile/finalizers.c (invoke_finalizer): (scm_sys_add_finalizer): New helper.
This commit is contained in:
parent
604a8e8540
commit
75c7f79abc
9 changed files with 98 additions and 49 deletions
|
@ -1,7 +1,7 @@
|
|||
#ifndef SCM_FOREIGN_OBJECT_H
|
||||
#define SCM_FOREIGN_OBJECT_H
|
||||
|
||||
/* Copyright 2014,2018
|
||||
/* Copyright 2014,2018,2025
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Guile.
|
||||
|
@ -56,7 +56,5 @@ SCM_API scm_t_signed_bits scm_foreign_object_signed_ref (SCM obj, size_t n);
|
|||
SCM_API void scm_foreign_object_signed_set_x (SCM obj, size_t n,
|
||||
scm_t_signed_bits val);
|
||||
|
||||
SCM_INTERNAL void scm_register_foreign_object (void);
|
||||
|
||||
|
||||
#endif /* SCM_FOREIGN_OBJECT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue