]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.20
authorfred <fred>
Tue, 14 Jan 1997 23:20:17 +0000 (23:20 +0000)
committerfred <fred>
Tue, 14 Jan 1997 23:20:17 +0000 (23:20 +0000)
flower/dstream.cc
flower/interval.tcc

index fc50506195400dab8130746a5d8c4ff6374e4f3d..44e2057059637ece5fde0e6a104d3677702201f5 100644 (file)
@@ -118,7 +118,7 @@ Dstream::Dstream(ostream *r, const char * cfg_nm )
             r.message("not enough fields in Dstream init.");
             continue;
         }
-        (*silent)[r[0]] = Scalar(r[1]).to_bool();
+        (*silent)[r[0]] = bool(Scalar(r[1]));
     }
 
 }
index 46b4fc7e1603f2bb7346f5af0d6ec3e857eb5404..0a1a027acd277a6a376b65a5e849eda437b3f731 100644 (file)
@@ -4,10 +4,9 @@
 #include "string.hh"
 
 
-
 template<class T>
 int
-Interval__compare(const Interval_t<T>&a,Interval_t<T> const&b)
+_Interval__compare(const Interval_t<T>&a,Interval_t<T> const&b)
 {
     if (a.left == b.left && a.right == b.right)
        return 0;
@@ -18,16 +17,30 @@ Interval__compare(const Interval_t<T>&a,Interval_t<T> const&b)
     if (a.left >= b.left && a.right <= b.right)
        return -1;
 
-    assert(false);             // not comparable
+    return -2;
+}
+
 
-    return 0;
+template<class T>
+int
+Interval__compare(const Interval_t<T>&a,Interval_t<T> const&b)
+{
+    int i = _Interval__compare(a,b);
+    if (i < -1)
+       assert(false);
+    return i;
 }
 
+#ifdef AIX
+const Real INFTY = 1e8;        // ARGh. AIX sucks
+#else
 const Real INFTY = HUGE;
+#endif
 
 template<class T>
 void
-Interval_t<T>::set_empty() {
+Interval_t<T>::set_empty()
+{
     left = INFTY;
     right = -INFTY;
 }