]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/scheme-engraver.cc
Merge remote-tracking branch 'origin/translation'
[lilypond.git] / lily / scheme-engraver.cc
index 3ed25e18beb5118181bd41c970c6d54291ab0c58..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,10 +186,19 @@ void mark_listen_closure (void *target)
   scm_gc_mark ((SCM)target);
 }
 
+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 */