lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clarify infinity_f preprocessor definition. (issue2099043)


From: percival . music . ca
Subject: Clarify infinity_f preprocessor definition. (issue2099043)
Date: Mon, 06 Sep 2010 14:06:30 +0000

Reviewers: ,

Message:
I have another tiny clarity rewrite for code.

Description:
Clarify infinity_f preprocessor definition.

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.

Please review this at http://codereview.appspot.com/2099043/

Affected files:
  M flower/real.cc


Index: flower/real.cc
diff --git a/flower/real.cc b/flower/real.cc
index 55537f8fa5d56296f473be106313e81ed87ca09b..20d8069669a6d0a6d709fb4c9d801826aba29cb1 100644
--- a/flower/real.cc
+++ b/flower/real.cc
@@ -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
-  ;
-
+





reply via email to

[Prev in Thread] Current Thread [Next in Thread]