2006-04-07 Han-Wen Nienhuys <hanwen@lilypond.org>
+ * lily/parser.yy (Generic_prefix_music_scm): append lists, not objects.
+
* scm/backend-library.scm (search-gs): oops.
2006-04-06 Han-Wen Nienhuys <hanwen@lilypond.org>
$$ = scm_list_3 ($1, make_input (@$), $2);
}
| music_function_musicless_prefix Music {
- $$ = ly_append2 ($1, $2->self_scm ());
+ $$ = ly_append2 ($1, scm_list_1 ($2->self_scm ()));
$2->unprotect ();
}
| MUSIC_FUNCTION_SCM_SCM function_scm_argument function_scm_argument {
(define (type-check-list location signature arguments)
"Typecheck a list of arguments against a list of type
predicates. Print a message at LOCATION if any predicate failed."
+
(define (recursion-helper signature arguments count)
(define (helper pred? arg count)
(if (not (pred? arg))
#t
(and (helper (car signature) (car arguments) count)
(recursion-helper (cdr signature) (cdr arguments) (1+ count)))))
+
(recursion-helper signature arguments 1))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;