remove public scm_protects export
authorAndy Wingo <wingo@pobox.com>
Fri, 18 Nov 2011 10:10:54 +0000 (11:10 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 24 Nov 2011 10:47:36 +0000 (11:47 +0100)
* libguile/gc.h:
* libguile/gc.c: Remove scm_protects from the API.  It is deprecated on
  stable-2.0.

libguile/gc.c
libguile/gc.h

index 696e321..2680dd6 100644 (file)
@@ -82,9 +82,8 @@ int scm_expensive_debug_cell_accesses_p = 0;
 int scm_debug_cells_gc_interval = 0;
 
 /* Hash table that keeps a reference to objects the user wants to protect from
-   garbage collection.  It could arguably be private but applications have come
-   to rely on it (e.g., Lilypond 2.13.9).  */
-SCM scm_protects;
+   garbage collection.  */
+static SCM scm_protects;
 
 
 #if (SCM_DEBUG_CELL_ACCESSES == 1)
index a7f3b73..08d2c15 100644 (file)
@@ -325,7 +325,6 @@ SCM_API void scm_gc_register_root (SCM *p);
 SCM_API void scm_gc_unregister_root (SCM *p);
 SCM_API void scm_gc_register_roots (SCM *b, unsigned long n);
 SCM_API void scm_gc_unregister_roots (SCM *b, unsigned long n);
-SCM_API SCM scm_protects;
 SCM_INTERNAL void scm_storage_prehistory (void);
 SCM_INTERNAL void scm_init_gc_protect_object (void);
 SCM_INTERNAL void scm_init_gc (void);