source file of the GNU LilyPond music typesetter
- (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "music-function.hh"
"Its arguments. @code{signature} is a list containing either "
"@code{ly:music?} predicates or other type predicates.")
{
- String str = "";
+ extern SCM ly_music_p_proc;
+
+ string str = "";
for (SCM s = signature; scm_is_pair (s); s = scm_cdr (s))
{
if (str != "")
str += "-";
- if (scm_car (s) == Music_type_p_proc)
+ if (scm_car (s) == ly_music_p_proc)
str += "music";
else if (scm_car (s) == ly_lily_module_constant ("markup?"))
str += "markup";
signature);
scm_set_object_property_x (func, ly_symbol2scm ("music-function-signature-keyword"),
- ly_symbol2scm (str.to_str0 ()));
+ ly_symbol2scm (str.c_str ()));
SCM_RETURN_NEWSMOB (music_function_tag, func);
}