X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fc%2B%2B.scm;h=800d08bfe6b8f2578edeb7ff5c198660d628c12e;hb=75edbfd3592781fdd66f51bedd1c7d1de4a51639;hp=30a17841132039ffd26178578bff8389a634f9cc;hpb=42c8f04fe971525561dde0ee757ffebe3e6c0703;p=lilypond.git diff --git a/scm/c++.scm b/scm/c++.scm index 30a1784113..800d08bfe6 100644 --- a/scm/c++.scm +++ b/scm/c++.scm @@ -2,8 +2,8 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 1998--2004 Jan Nieuwenhuizen -;;;; Han-Wen Nienhuys +;;;; (c) 1998--2006 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))) @@ -47,6 +50,9 @@ (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)