|
Redesign listeners using templates
This is actually just a start since it does not touch most of the
infrastructure for translators.
Contains the following commits in reverse order:
Remove Scheme listeners as they are just callbacks now.
Reimplement Listener around generic SCM callback and instance
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 (')
Make dispatchers callable for dispatching
Move self_scm_ into non-templated Smob_core base class.
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+276 lines, -411 lines) |
Patch |
|
M |
lily/context.cc
|
View
|
1
2
3
|
8 chunks |
+7 lines, -13 lines |
0 comments
|
Download
|
|
M |
lily/dispatcher.cc
|
View
|
1
2
3
|
7 chunks |
+16 lines, -10 lines |
0 comments
|
Download
|
|
M |
lily/dispatcher-scheme.cc
|
View
|
|
1 chunk |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
lily/engraver-group.cc
|
View
|
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
lily/global-context.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
lily/grace-engraver.cc
|
View
|
|
4 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
lily/include/context.hh
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
lily/include/dispatcher.hh
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
lily/include/engraver-group.hh
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
lily/include/global-context.hh
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
lily/include/listener.hh
|
View
|
1
|
1 chunk |
+132 lines, -70 lines |
0 comments
|
Download
|
|
M |
lily/include/scheme-engraver.hh
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
lily/include/scheme-listener.hh
|
View
|
|
1 chunk |
+0 lines, -41 lines |
0 comments
|
Download
|
|
M |
lily/include/score-engraver.hh
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
lily/include/score-performer.hh
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
lily/include/smobs.hh
|
View
|
1
2
3
|
3 chunks |
+15 lines, -4 lines |
0 comments
|
Download
|
|
M |
lily/include/translator.hh
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
lily/include/translator.icc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
lily/include/translator-group.hh
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
lily/listener.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -41 lines |
0 comments
|
Download
|
|
M |
lily/lyric-combine-music-iterator.cc
|
View
|
|
5 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
lily/midi-control-function-performer.cc
|
View
|
|
3 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
lily/part-combine-iterator.cc
|
View
|
|
4 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
lily/scheme-engraver.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -34 lines |
0 comments
|
Download
|
|
D |
lily/scheme-listener.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -56 lines |
0 comments
|
Download
|
|
D |
lily/scheme-listener-scheme.cc
|
View
|
|
1 chunk |
+0 lines, -34 lines |
0 comments
|
Download
|
|
M |
lily/score-engraver.cc
|
View
|
|
4 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
|
M |
lily/score-performer.cc
|
View
|
|
3 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
|
M |
lily/smobs.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
lily/translator-group.cc
|
View
|
1
2
3
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
scm/part-combiner.scm
|
View
|
|
1 chunk |
+27 lines, -29 lines |
0 comments
|
Download
|
|
M |
scm/scheme-engravers.scm
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 10
|