]> git.donarmstrong.com Git - lilypond.git/commitdiff
* flower/libc-extension.cc (lrint)[!HAVE_LRINT]: Use round () and
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 Jul 2003 12:32:16 +0000 (12:32 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 Jul 2003 12:32:16 +0000 (12:32 +0000)
cast #define.

* NEWS: Typo and fill-paragraph fixes.

ChangeLog
NEWS
flower/libc-extension.cc

index 6213389803026e71693778b5661dc656981ec9b3..362447fdca2640febc2d980fb684769da77879f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 2003-07-19  Jan Nieuwenhuizen  <janneke@gnu.org>
 
 2003-07-19  Jan Nieuwenhuizen  <janneke@gnu.org>
 
-       * flower/libc-extension.cc (lrint)[!HAVE_LRINT]: Add casting #define.
+       * NEWS: Typo and fill-paragraph fixes.
+
+       * flower/libc-extension.cc (lrint)[!HAVE_LRINT]: Use round () and
+       cast #define.
 
        * configure.in: 
        * config.hh.in: Check for lrint.
 
        * configure.in: 
        * config.hh.in: Check for lrint.
diff --git a/NEWS b/NEWS
index de69b094d0667b33a6806fc8e220433d32bbbbb6..3958b8443e5ee08561f4d3e9c5e5d13f1b97453b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,13 +1,12 @@
 New features in 1.8 since 1.6
 =============================
 
 New features in 1.8 since 1.6
 =============================
 
-** There chord entry code has been completely rewritten. It is now
+** The chord entry code has been completely rewritten. It is now
 cleaner and more flexible.
 
 cleaner and more flexible.
 
-** A new syntax has been added for  text entry.
-
-This syntax is more friendly than the old mechanism, and it is
-implemented in a more robust and modular way.
+** A new syntax has been added for text entry.  This syntax is more
+friendly than the old mechanism, and it is implemented in a more
+robust and modular way.
 
 ** Deeper integration of the input language and Scheme. You can now use
 LilyPond identifiers in Scheme, and use Scheme expressions instead of
 
 ** Deeper integration of the input language and Scheme. You can now use
 LilyPond identifiers in Scheme, and use Scheme expressions instead of
@@ -37,9 +36,8 @@ A beamed slurred pair of eighth notes can be entered as
 In version 2.0, postfix syntax will be the only syntax
 available, and the dashes will become optional.
 
 In version 2.0, postfix syntax will be the only syntax
 available, and the dashes will become optional.
 
-** User code may now be executed during interpreting.
-
-The syntax for this code is 
+** User code may now be executed during interpreting.  The syntax for
+this code is
 
        \applycontext #SCHEME-FUNCTION
 
 
        \applycontext #SCHEME-FUNCTION
 
@@ -75,19 +73,18 @@ syntax for this is
                ..
        NOTE-\stopGroup
 
                ..
        NOTE-\stopGroup
 
-** Ottava brackets are now fully supported as a feature.
-The syntax is
+** Ottava brackets are now fully supported as a feature.  The syntax
+is
 
        #(set-octavation 1)
 
 
        #(set-octavation 1)
 
-** Metronome markings are printed when a
-\tempo command is processed. 
+** Metronome markings are printed when a \tempo command is processed.
 
 ** Fingerings can be put on chords horizontally.
 
 
 ** Fingerings can be put on chords horizontally.
 
-** The appearance of various glyphs has been fine-tuned 
+** The appearance of various glyphs has been fine-tuned.
 
 
-** Different types of percent style repeats may now be nested
+** Different types of percent style repeats may now be nested.
 
 ** The emacs support has been extended.
 
 
 ** The emacs support has been extended.
 
index 198ecbb7fe31cc3d3f6d0f4d5a17ef6f6c6371d5..e994344d7f351d01a004a32f82f1e75a964262d8 100644 (file)
@@ -13,9 +13,6 @@
 #include <ctype.h>
 #include "libc-extension.hh"
 
 #include <ctype.h>
 #include "libc-extension.hh"
 
-/*
-  urg: why soo wierd?
- */
 char* 
 strnlwr (char* start ,int n)
 {
 char* 
 strnlwr (char* start ,int n)
 {
@@ -39,6 +36,20 @@ strnupr (char* start, int n)
 }
 
 
 }
 
 
+#if ! HAVE_LRINT
+#define lrint(__x) ((long) (round (__x)
+#endif
+
+
+#if !HAVE_ISINF
+int
+isinf (double x)
+{
+  return x && ( x == x/ 2) ;
+}
+#endif
+
+
 #if !HAVE_MEMMEM
 
 /** locate a substring. #memmem# finds the first occurrence of
 #if !HAVE_MEMMEM
 
 /** locate a substring. #memmem# finds the first occurrence of
@@ -64,7 +75,7 @@ _memmem (Byte const *haystack, int haystack_len,
         if (*subneedle++ != *subhaystack++)
          goto next;
        
         if (*subneedle++ != *subhaystack++)
          goto next;
        
-      // completed the needle. Gotcha.
+      /* Completed the needle.  Gotcha.  */
       return (Byte *) haystack;
       next:
        haystack++;
       return (Byte *) haystack;
       next:
        haystack++;
@@ -120,10 +131,6 @@ strrev (Byte* byte, int length_i)
   return byte;
 }
 
   return byte;
 }
 
-#if ! HAVE_LRINT
-#define lrint(__x) ((long)(double) __x)
-#endif
-
 #if ! HAVE_SNPRINTF
 int 
 snprintf (char *str, size_t, char const *format, ...)
 #if ! HAVE_SNPRINTF
 int 
 snprintf (char *str, size_t, char const *format, ...)
@@ -144,13 +151,3 @@ vsnprintf (char *str, size_t, char const *format, va_list args)
   return i;
 }
 #endif
   return i;
 }
 #endif
-
-
-#if !HAVE_ISINF
-int
-isinf (double x)
-{
-  return x && ( x == x/ 2) ;
-}
-
-#endif