X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fc%2B%2B.scm;h=74f58f4da3f4da2449535f0faf6ca1034c85dcd0;hb=ac3dd3ad38528113d97f6a8a7b81751c328f1c36;hp=bc518030ae8304889cc98a3d37015839a98c3a7d;hpb=7bd6884c300f1a032b5b9f2e0b9ffa5a7938244a;p=lilypond.git diff --git a/scm/c++.scm b/scm/c++.scm index bc518030ae..74f58f4da3 100644 --- a/scm/c++.scm +++ b/scm/c++.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 1998--2010 Jan Nieuwenhuizen +;;;; Copyright (C) 1998--2011 Jan Nieuwenhuizen ;;;; Han-Wen Nienhuys ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify @@ -47,6 +47,9 @@ (define-public (string-or-pair? x) (or (string? x) (pair? x))) +(define-public (number-or-pair? x) + (or (number? x) (pair? x))) + (define-public (cheap-list? x) (or (pair? x) (null? x))) @@ -55,6 +58,8 @@ (define-public (scheme? x) #t) +(define-public (symbol-or-boolean? x) + (or (symbol? x) (boolean? x))) ;; moved list to end of lily.scm: then all type-predicates are ;; defined.