]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/scheme-engraver.cc
Merge remote-tracking branch 'origin/translation'
[lilypond.git] / lily / scheme-engraver.cc
index e59903086ac750fa225e4af7c88ed412a0de5a1d..0b69eb62e73e6a4086aa8871fbbd4aac7f77d42b 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  Copyright (c) 2009--2011 Han-Wen Nienhuys <hanwen@lilypond.org>
+  Copyright (c) 2009--2014 Han-Wen Nienhuys <hanwen@lilypond.org>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -186,9 +186,19 @@ void mark_listen_closure (void *target)
   scm_gc_mark ((SCM)target);
 }
 
-Listener_function_table listen_closure =
+static
+bool equal_listen_closure (void *a, void *b)
+{
+  SCM target_a = (SCM) a;
+  SCM target_b = (SCM) b;
+
+  return ly_is_equal (target_a, target_b);
+}
+
+Listener_function_table listen_closure
+=
 {
-  call_listen_closure, mark_listen_closure
+  call_listen_closure, mark_listen_closure, equal_listen_closure
 };
 
 /* static */