]> git.donarmstrong.com Git - lilypond.git/blob - lily/template5.cc
patch::: 1.3.136.jcn3
[lilypond.git] / lily / template5.cc
1 /*
2   template5.cc -- instantiate Intervals
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include <limits.h>
10 #include "string.hh"
11 #include "moment.hh"
12 #include "real.hh"
13 #include "interval.tcc"
14 #include "compare.hh"
15
16 Rational
17 Interval_t<Rational>::infinity ()
18 {
19   Rational infty;
20   infty.set_infinite (1);
21   return infty;
22 }
23
24 String
25 Interval_t<Rational>::T_to_str (Rational a)
26 {
27   return a.str ();
28 }
29
30
31
32 template INTERVAL__INSTANTIATE (Rational);