]> git.donarmstrong.com Git - lilypond.git/commitdiff
* Documentation/user/internals.itely (Manipulating music
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 24 Jul 2003 14:00:18 +0000 (14:00 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 24 Jul 2003 14:00:18 +0000 (14:00 +0000)
expressions): run lilypond on example too.

* flower/include/libc-extension.hh: move lrint define to
header. bugfix.

ChangeLog
Documentation/user/internals.itely
flower/include/libc-extension.hh
flower/libc-extension.cc
lily/staff-symbol-referencer.cc

index 8f94d194afa05c0c41533d9b5be56024c2c4d179..f7e99a0e64dd1dfb9cc49c40a0218db74f1026eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-07-24  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+       * Documentation/user/internals.itely (Manipulating music
+       expressions): run lilypond on example too.
+
+       * flower/include/libc-extension.hh: move lrint define to
+       header. bugfix.
+       
 2003-07-24  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * stepmake/GNUmakefile.in (STEPMAKE_TEMPLATES): 
index 10c5ee88ab3c12610164818e678b717b8cbe068a..f33af4ec27bb6b98bf5f23f4c40f0e93c94700dd 100644 (file)
@@ -755,13 +755,13 @@ properties using the functions @code{ly:get-music-property} and
 
 An example is a function that reverses the order of elements in
 its argument:
-@example
+@lilypond[verbatim,singleline]
   #(define (rev-music-1 m)
      (ly:set-music-property! 'elements (reverse
        (ly:get-music-property mus 'elements)))
-   )
-  \apply #rev-music-1 @{ c4 d4 @}
-@end example
+     m)
+  \apply #rev-music-1 { c4 d4 }
+@end lilypond
 
 The use of such a function is very limited. The effect of this
 function is void when applied to an argument which is does not have
index baf41bbd95d2fce62ae1d10864731c4fe8e7aa1f..bfba8c9d035f3458807d50a56a4065744e914981 100644 (file)
@@ -37,6 +37,12 @@ int isinf (double x);
 
 #endif
 
+
+#if ! HAVE_LRINT
+#define lrint(__x) ((long) (round (__x)))
+#endif
+
+
 Byte *memrchr (Byte const * p, int n, char c);
 Byte *strrev (Byte* byte, int length_i);
 
index e994344d7f351d01a004a32f82f1e75a964262d8..4d42ce44b3940f661257abdb5ca9521695847e24 100644 (file)
@@ -36,10 +36,6 @@ strnupr (char* start, int n)
 }
 
 
-#if ! HAVE_LRINT
-#define lrint(__x) ((long) (round (__x)
-#endif
-
 
 #if !HAVE_ISINF
 int
index 0ed60e616ba16f9e7f2f26f3f5a7a3615541dad5..767aeb6d0098e1ba884e7f272e9a1a26792217b1 100644 (file)
@@ -11,7 +11,7 @@
 #include "staff-symbol-referencer.hh"
 #include "staff-symbol.hh"
 #include "paper-def.hh"
+#include "libc-extension.hh" 
 
 
 int