mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
* * gc.c (scm_protect_object, scm_unprotect_object): New functions.
Their prototypes were already present in gc.h, but they weren't implemented. (scm_init_storage): Initialize scm_protects. * root.c (scm_protects): New element of scm_sys_protects.
This commit is contained in:
parent
ce2a6727dc
commit
ef290276ac
2 changed files with 44 additions and 3 deletions
|
@ -67,11 +67,12 @@
|
|||
#define scm_object_whash scm_sys_protects[12]
|
||||
#define scm_permobjs scm_sys_protects[13]
|
||||
#define scm_asyncs scm_sys_protects[14]
|
||||
#define scm_protects scm_sys_protects[15]
|
||||
#ifdef DEBUG_EXTENSIONS
|
||||
#define scm_source_whash scm_sys_protects[15]
|
||||
#define SCM_NUM_PROTECTS 16
|
||||
#define scm_source_whash scm_sys_protects[16]
|
||||
#define SCM_NUM_PROTECTS 17
|
||||
#else
|
||||
#define SCM_NUM_PROTECTS 15
|
||||
#define SCM_NUM_PROTECTS 16
|
||||
#endif
|
||||
|
||||
extern SCM scm_sys_protects[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue