X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fmoment.hh;h=ed7c7b0741d34da984936e12f8c568708ce88ebf;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=ea6ef59a5fa5d7ff23a68e655fc1c190082d3e19;hpb=75eebcb49e52d296b1da3e1074e0825d2c780db4;p=lilypond.git diff --git a/lily/include/moment.hh b/lily/include/moment.hh index ea6ef59a5f..ed7c7b0741 100644 --- a/lily/include/moment.hh +++ b/lily/include/moment.hh @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2006 Han-Wen Nienhuys + (c) 1999--2008 Han-Wen Nienhuys */ #ifndef MOMENT_HH @@ -18,7 +18,7 @@ */ class Moment { - DECLARE_SIMPLE_SMOBS (Moment,); + DECLARE_SIMPLE_SMOBS (Moment); public: Moment (); Moment (int m); @@ -41,15 +41,16 @@ public: void set_infinite (int k); bool to_bool () const; - int den () const; - int num () const; + I64 den () const; + I64 num () const; /* Deliver a copy of THIS as a smobified SCM */ - String to_string () const; + string to_string () const; static int compare (Moment const &, Moment const &); SCM as_scheme () const; }; + IMPLEMENT_ARITHMETIC_OPERATOR (Moment, +); IMPLEMENT_ARITHMETIC_OPERATOR (Moment, -); IMPLEMENT_ARITHMETIC_OPERATOR (Moment, /);