X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fscheme-engraver.cc;h=8d2054161bf716b577c4f4a4c61442cbd584cd13;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=cde829a60788bec5b140942dad26a6fd75168184;hpb=d61cf3bbdb1c6670a127ba3baddf2f04d3e34fd3;p=lilypond.git diff --git a/lily/scheme-engraver.cc b/lily/scheme-engraver.cc index cde829a607..8d2054161b 100644 --- a/lily/scheme-engraver.cc +++ b/lily/scheme-engraver.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - Copyright (c) 2009--2012 Han-Wen Nienhuys + Copyright (c) 2009--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -158,7 +158,7 @@ void Scheme_engraver::acknowledge_grob_by_hash (Grob_info info, SCM iface_function_hash) { - SCM meta = info.grob ()->internal_get_property (ly_symbol2scm ("meta")); + SCM meta = info.grob ()->get_property ("meta"); SCM ifaces = scm_cdr (scm_assoc (ly_symbol2scm ("interfaces"), meta)); for (SCM s = ifaces; scm_is_pair (s); s = scm_cdr (s)) { @@ -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 */