]> git.donarmstrong.com Git - lilypond.git/commitdiff
Clarify infinity_f preprocessor definition.
authorGraham Percival <graham@percival-music.ca>
Mon, 6 Sep 2010 13:56:56 +0000 (14:56 +0100)
committerGraham Percival <graham@percival-music.ca>
Mon, 6 Sep 2010 14:43:57 +0000 (15:43 +0100)
The old code confuses various style programs, including our own
fixcc.py (it produces un-compilable code!).  In particular:
-----
const Real infinity_f
= #ifdef
-----
which makes gcc unhapy.

The new format is easy for style programs to deal with, still
compiles, and is IMO just as clear anyway.

flower/real.cc

index 55537f8fa5d56296f473be106313e81ed87ca09b..20d8069669a6d0a6d709fb4c9d801826aba29cb1 100644 (file)
@@ -3,11 +3,9 @@
 #include <cmath>
 using namespace std;
 
-const Real infinity_f =
 #ifdef INFINITY
-  INFINITY
+const Real infinity_f = INFINITY;
 #else
-  HUGE_VAL  
+const Real infinity_f = HUGE_VAL;
 #endif
-  ;
-  
+