X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspanner-scheme.cc;h=2ab90a60a9b034e1ab75399a28524caa251bffc8;hb=ad90362ada4f624bda3977456e66ecf6f0252946;hp=097bdf0290b6cd2717f452535db67388b7451b07;hpb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;p=lilypond.git diff --git a/lily/spanner-scheme.cc b/lily/spanner-scheme.cc index 097bdf0290..2ab90a60a9 100644 --- a/lily/spanner-scheme.cc +++ b/lily/spanner-scheme.cc @@ -1,24 +1,35 @@ -/* - spanner-scheme.cc -- implement Spanner bindings. - - source file of the GNU LilyPond music typesetter - - (c) 2007--2008 Han-Wen Nienhuys +/* + This file is part of LilyPond, the GNU music typesetter. + + Copyright (C) 2007--2009 Han-Wen Nienhuys + + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "spanner.hh" #include "item.hh" LY_DEFINE (ly_spanner_bound, "ly:spanner-bound", - 2, 0, 0, (SCM slur, SCM dir), - "Get one of the bounds of @var{slur}. @var{dir} is @code{-1}" + 2, 0, 0, (SCM spanner, SCM dir), + "Get one of the bounds of @var{spanner}. @var{dir} is @code{-1}" " for left, and @code{1} for right.") { - LY_ASSERT_TYPE (unsmob_spanner, slur, 1); - LY_ASSERT_TYPE (is_direction, dir,2); + LY_ASSERT_TYPE (unsmob_spanner, spanner, 1); + LY_ASSERT_TYPE (is_direction, dir, 2); - return unsmob_spanner (slur)->get_bound (to_dir (dir))->self_scm (); + return unsmob_spanner (spanner)->get_bound (to_dir (dir))->self_scm (); } /* TODO: maybe we should return a vector -- random access is more