- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -1,19 +1,23 @@
-flower: Get rid of libc-extension
+flower: Clean up libc-extension
 
 Individual commits:
 1) Remove unused includes of libc-extension.hh
 
-2) flower: Replace my_round with std::round
+2) Rewrite String_convert::to_upper, ::to_lower via std::transform
 
-This affects only a single regression test, tie-single-manual.ly:
-It relies upon the weird rounding of my_round for negative numbers,
-for exmaple -7.5 -> -7.0. Instead std::round moves halfway cases away
-from zero, -7.5 -> -8.0.
+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.
 
-3) Rewrite String_convert::to_upper, ::to_lower via std::transform
-
 http://codereview.appspot.com/553740043

~~~~

- **Needs**:  -->  
- **Patch**: new --> needs_work
- **Type**:  --> Enhancement



---

** [issues:#5848] flower: Get rid of libc-extension**

**Status:** Started
**Created:** Tue Mar 17, 2020 09:03 PM UTC by Jonas Hahnfeld
**Last Updated:** Sat Apr 11, 2020 03:59 PM UTC
**Owner:** Jonas Hahnfeld


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.

http://codereview.appspot.com/553740043


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
  • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development

Reply via email to