-/*
+/*
moment.cc -- implement Moment bindings
source file of the GNU LilyPond music typesetter
#include "moment.hh"
-
/* TODO: add optional factor argument. */
LY_DEFINE (ly_make_moment, "ly:make-moment",
2, 2, 0, (SCM n, SCM d, SCM gn, SCM gd),
Moment *ma = unsmob_moment (mom);
SCM_ASSERT_TYPE (ma, mom, SCM_ARG1, __FUNCTION__, "moment");
- return scm_from_int (ma->main_part_.numerator ());
+ return scm_from_int (ma->main_part_.numerator ());
}
LY_DEFINE (ly_moment_main_denominator, "ly:moment-main-denominator",
Moment *ma = unsmob_moment (mom);
SCM_ASSERT_TYPE (ma, mom, SCM_ARG1, __FUNCTION__, "moment");
- return scm_from_int (ma->main_part_.denominator ());
+ return scm_from_int (ma->main_part_.denominator ());
}
LY_DEFINE (ly_moment_less_p, "ly:moment<?",
Moment *mb = unsmob_moment (b);
SCM_ASSERT_TYPE (ma, a, SCM_ARG1, __FUNCTION__, "moment");
SCM_ASSERT_TYPE (mb, b, SCM_ARG2, __FUNCTION__, "moment");
- return ly_bool2scm (*ma < *mb);
+ return ly_bool2scm (*ma < *mb);
}