source file of the GNU LilyPond music typesetter
- (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "span-bar.hh"
if (!scm_is_string (glyph))
return SCM_EOL;
- std::string glyph_string = ly_scm2string (glyph);
+ string glyph_string = ly_scm2string (glyph);
/* compose span_bar_mol */
- std::vector<Interval> extents;
+ vector<Interval> extents;
Grob *model_bar = 0;
for (vsize i = elements.size (); i--;)
{
if (!model_bar)
model_bar = me;
- extents.sort (&Interval::left_comparison);
+ vector_sort (extents, Interval::left_less);
Stencil span_bar;
for (vsize i = 1; i < extents.size (); i++)
if (!me->is_live ())
return ly_interval2scm (Interval ());
- std::string gl = ly_scm2string (gn);
+ string gl = ly_scm2string (gn);
/*
urg.
return SCM_UNSPECIFIED;
}
- std::string type = ly_scm2string (gl);
+ string type = ly_scm2string (gl);
if (type == "|:")
type = ".|";
else if (type == ":|")
else if (type == ":|:")
type = ".|.";
- return scm_makfrom0str (type.c_str ());
+ return ly_string2scm (type);
}
Interval
return scm_from_double (iv.length ());
}
-ADD_INTERFACE (Span_bar, "span-bar-interface",
+ADD_INTERFACE (Span_bar,
"A bar line that spanned between other barlines. This interface is "
" used for bar lines that connect different staves.",