]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 5057/5: Stop SCM/int confusion for grob interface table
authorDavid Kastrup <dak@gnu.org>
Sat, 4 Feb 2017 22:13:01 +0000 (23:13 +0100)
committerDavid Kastrup <dak@gnu.org>
Sat, 11 Feb 2017 07:49:56 +0000 (08:49 +0100)
lily/grob-interface-scheme.cc

index 3d5fa39a074314ddd4413e4ad3a2c75113b0be36..11a5576169761bf4c4c436d7deb92e3b96bce9bc 100644 (file)
 
 #include "lily-guile.hh"
 #include "std-string.hh"
+#include "protected-scm.hh"
 
-static SCM all_ifaces;
+static Protected_scm all_ifaces;
 
 void
 internal_add_interface (SCM a, SCM b, SCM c)
 {
-  if (!all_ifaces)
-    {
-      SCM tab = scm_c_make_hash_table (59);
-      all_ifaces = tab;
-      scm_permanent_object (tab);
-    }
+  if (!all_ifaces.is_bound ())
+    all_ifaces = scm_c_make_hash_table (59);
 
   SCM entry = scm_list_3 (a, b, c);