]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/rational.cc
*** empty log message ***
[lilypond.git] / flower / rational.cc
index f238e4b30d22348ffc2a7cead4787b590ffc5ebb..888a82ae9de452c6a398a027f0171836851b7368 100644 (file)
@@ -3,12 +3,14 @@
   
   source file of the Flower Library
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
-#include <math.h>
-#include <stdlib.h>
+
 #include "rational.hh"
-#include "string.hh"
+
+#include <cmath>
+#include <cstdlib>
+
 #include "string-convert.hh"  
 #include "libc-extension.hh"
 
@@ -54,7 +56,7 @@ Rational::Rational (int n)
   den_= 1;
 }
 
-static
+static inline
 int gcd (int a, int b)
 {
   int t;
@@ -66,13 +68,6 @@ int gcd (int a, int b)
   return b;
 }
 
-#if 0
-static
-int lcm (int a, int b)
-{
-  return abs (a*b / gcd (a,b));
-}
-#endif
 
 void
 Rational::set_infinite (int s)