X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fprob-scheme.cc;h=8c5d640ad0d3b5d9501c57c8f800d723504df8b3;hb=3dd560c0c440c9e97730ca13f6d5abbb020bb02e;hp=3f729e4894c4407d89536817efffa23eb31e4609;hpb=3f8485925e8c879fe4c9ae86acef9804126c3b91;p=lilypond.git diff --git a/lily/prob-scheme.cc b/lily/prob-scheme.cc index 3f729e4894..8c5d640ad0 100644 --- a/lily/prob-scheme.cc +++ b/lily/prob-scheme.cc @@ -11,7 +11,7 @@ LY_DEFINE (ly_prob_set_property_x, "ly:prob-set-property!", 2, 1, 0, (SCM obj, SCM sym, SCM value), - "Set property @var{sym} of @var{obj} to @var{value}") + "Set property @var{sym} of @var{obj} to @var{value}.") { LY_ASSERT_SMOB (Prob, obj, 1); Prob *ps = unsmob_prob (obj); @@ -52,7 +52,7 @@ LY_DEFINE (ly_prob_property, "ly:prob-property", LY_DEFINE (ly_prob_type_p, "ly:prob-type?", 2, 0, 0, (SCM obj, SCM type), - "If obj the specified prob-type?") + "Is @var{obj} the specified prob-type?") { Prob*prob = unsmob_prob (obj); return scm_from_bool (prob && prob->type () == type); @@ -61,7 +61,7 @@ LY_DEFINE (ly_prob_type_p, "ly:prob-type?", LY_DEFINE (ly_make_prob, "ly:make-prob", 2, 0, 1, (SCM type, SCM init, SCM rest), - "Create a Prob.") + "Create a @code{Prob} object.") { Prob *pr = new Prob (type, init); @@ -87,15 +87,15 @@ LY_DEFINE (ly_paper_system_p, "ly:paper-system?", LY_DEFINE (ly_paper_system_minimum_distance, "ly:paper-system-minimum-distance", 2, 0, 0, (SCM sys1, SCM sys2), - "Measure the minimum distance between these two paper-systems " - "using their stored skylines if possible and falling back to " - "their extents otherwise.") + "Measure the minimum distance between these two paper-systems," + " using their stored skylines if possible and falling back to" + " their extents otherwise.") { Real ret = 0; Prob *p1 = unsmob_prob (sys1); Prob *p2 = unsmob_prob (sys2); - Skyline_pair *sky1 = Skyline_pair::unsmob (p1->get_property ("skylines")); - Skyline_pair *sky2 = Skyline_pair::unsmob (p2->get_property ("skylines")); + Skyline_pair *sky1 = Skyline_pair::unsmob (p1->get_property ("vertical-skylines")); + Skyline_pair *sky2 = Skyline_pair::unsmob (p2->get_property ("vertical-skylines")); if (sky1 && sky2) ret = (*sky1)[DOWN].distance ((*sky2)[UP]);