]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4357/3: Run preparatory script replacing listener macros
authorDavid Kastrup <dak@gnu.org>
Mon, 27 Apr 2015 19:11:31 +0000 (21:11 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 12 May 2015 12:25:33 +0000 (14:25 +0200)
commit18d9bcf40f630efefdeb42e3d15653c7aae73ec3
treedb417aa58f13e330dc6aa9fd0176e17ec04db94e
parent2718522532d6dd30d1c5fcb24e8d54fbe872355e
Issue 4357/3: Run preparatory script replacing listener macros

This script is

for i in $(git grep -l 'IMPLEMENT_LISTENER (')
do
    sed -i '/IMPLEMENT_LISTENER ([^)]*$/{N;s/\n\s*/ /}' $i
    sedscript=$(git grep -h 'IMPLEMENT_LISTENER (' $i|
       sed 's|^.*IMPLEMENT_LISTENER (\([^,]*\), \([^)]*\)).*$|s/GET_LISTENER (\\([_a-z]\\+->\\)\\?\2)/\\1GET_LISTENER (\1, \2)/|')
    sed -i "$sedscript" $i
done
sed -i '/IMPLEMENT_LISTENER (/d' $(git grep -l 'IMPLEMENT_LISTENER (')
sed -i 's/DECLARE_LISTENER (\([^)]*\));\?/void \1 (SCM);/' $(git grep -l 'DECLARE_LISTENER (')
23 files changed:
lily/context.cc
lily/dispatcher.cc
lily/engraver-group.cc
lily/global-context.cc
lily/grace-engraver.cc
lily/include/context.hh
lily/include/dispatcher.hh
lily/include/engraver-group.hh
lily/include/global-context.hh
lily/include/listener.hh
lily/include/scheme-listener.hh
lily/include/score-engraver.hh
lily/include/score-performer.hh
lily/include/translator-group.hh
lily/include/translator.hh
lily/include/translator.icc
lily/lyric-combine-music-iterator.cc
lily/midi-control-function-performer.cc
lily/part-combine-iterator.cc
lily/scheme-listener.cc
lily/score-engraver.cc
lily/score-performer.cc
lily/translator-group.cc