lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spacing patch


From: Han-Wen Nienhuys
Subject: Re: Spacing patch
Date: Mon, 01 May 2006 02:04:58 +0200
User-agent: Thunderbird 1.5 (X11/20060313)

Joe Neeman wrote:
was letting infs through. I guess it's time to upgrade...
You could also export a ly:inf? from lilypond.

I was having trouble[1] getting 1.8 to work on amd64, so I've actually already done a patch. It allows me to finish "make web", but maybe exporting a C++ function would be more reliable?

[1] http://article.gmane.org/gmane.lisp.guile.devel/5805

2006-05-01  Joe Neeman  <address@hidden>

        * scm/lily-library.scm: Fix guile 1.6 compatibility in inf? and nan?


------------------------------------------------------------------------

Index: scm/lily-library.scm
===================================================================
RCS file: /sources/lilypond/lilypond/scm/lily-library.scm,v
retrieving revision 1.62
diff -u -r1.62 lily-library.scm
--- scm/lily-library.scm        31 Mar 2006 00:23:26 -0000      1.62
+++ scm/lily-library.scm        30 Apr 2006 23:47:37 -0000
@@ -320,10 +320,12 @@
 ;; numbers
(if (not (defined? 'nan?)) ;; guile 1.6 compat
-    (define-public (nan? x) #f))
+    (define-public (nan? x) (not (or (< 0.0 x)
+                                    (> 0.0 x)
+                                    (= 0.0 x)))))
(if (not (defined? 'inf?))
-    (define-public (inf? x) #f))
+    (define-public (inf? x) (= (/ 1.0 x) 0.0)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; intervals

looks good. Please apply. If you have checked that the regtest document looks ok, please apply the spacing patch too.

--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]