X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fc%2B%2B.scm;h=17586d1f385a1683935260b045194cf407c47a5c;hb=84dfa31321b6f0c3224ed8c586b64ec97e88402f;hp=61fb34e7826130dc4b9ce6865ea20a18aba7f137;hpb=32f61c588a0d4ee8ede1e8a9276de3d689202f3a;p=lilypond.git diff --git a/scm/c++.scm b/scm/c++.scm index 61fb34e782..17586d1f38 100644 --- a/scm/c++.scm +++ b/scm/c++.scm @@ -2,8 +2,8 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 1998--2006 Jan Nieuwenhuizen -;;;; Han-Wen Nienhuys +;;;; (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)