|
flower: Clean up libc-extension
Individual commits:
1) Remove unused includes of libc-extension.hh
2) Rewrite String_convert::to_upper, ::to_lower via std::transform
3) Rename my_round to round_halfway_up
The function differs from std::round() in the handling of negative
numbers: While std::round() rounds halfway cases away from zero,
round_halfway_up (as the name suggests) rounds them up for historic
reasons.
This can apparently be relied upon at least when manually positioning
ties (input/regression/tie-single-manual.ly). In the long run, these
cases should be identified and taken care of individually. Keep this
function for the time being, but DO NOT USE in newly written code.
While passing by, move some system headers last (this helps avoid issues
that one of LilyPond's headers depends on other system headers being
loaded first) and add them if apparently used in the file.
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+84 lines, -83 lines) |
Patch |
|
D |
flower/include/libc-extension.hh
|
View
|
1
|
1 chunk |
+12 lines, -9 lines |
0 comments
|
Download
|
|
M |
flower/libc-extension.cc
|
View
|
1
|
1 chunk |
+2 lines, -30 lines |
0 comments
|
Download
|
|
M |
flower/rational.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
flower/string-convert.cc
|
View
|
1
|
2 chunks |
+10 lines, -12 lines |
0 comments
|
Download
|
|
M |
lily/beam-quanting.cc
|
View
|
1
|
3 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
lily/bezier.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/general-scheme.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/lily-guile.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/midi-cc-announcer.cc
|
View
|
1
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
lily/midi-item.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/pango-select.cc
|
View
|
1
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/paper-def.cc
|
View
|
1
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
lily/simple-spacer.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/slur-configuration.cc
|
View
|
1
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/slur-scoring.cc
|
View
|
1
|
3 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
M |
lily/spanner.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/staff-symbol-referencer.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/staff-symbol-referencer-scheme.cc
|
View
|
1
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/stencil-scheme.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
lily/tie-formatting-problem.cc
|
View
|
1
|
4 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
M |
lily/tie-specification.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 8
|