X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fc%2B%2B.scm;h=17586d1f385a1683935260b045194cf407c47a5c;hb=84dfa31321b6f0c3224ed8c586b64ec97e88402f;hp=adc21cea2301769664b8cdc1cd20e78a0f09d2af;hpb=7eaeba29769613cb105e71ac40a71746d1601d90;p=lilypond.git diff --git a/scm/c++.scm b/scm/c++.scm index adc21cea23..17586d1f38 100644 --- a/scm/c++.scm +++ b/scm/c++.scm @@ -2,7 +2,7 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 1998--2006 Jan Nieuwenhuizen +;;;; (c) 1998--2007 Jan Nieuwenhuizen ;;;; Han-Wen Nienhuys ;;; Note: this file can't be used without LilyPond executable @@ -27,6 +27,9 @@ (define-public (boolean-or-symbol? x) (or (boolean? x) (symbol? x))) +(define-public (string-or-symbol? x) + (or (string? x) (symbol? x))) + (define-public (number-or-string? x) (or (number? x) (string? x))) @@ -46,8 +49,10 @@ (define-public (object-type obj) (match-predicate obj type-p-name-alist)) + (define-public (object-type-name obj) (type-name (match-predicate obj type-p-name-alist))) + (define-public (type-name predicate) (let ((entry (assoc predicate type-p-name-alist))) (if (pair? entry) (cdr entry)