remove ENGNOT from __scm.h
authorAndy Wingo <wingo@pobox.com>
Sun, 15 May 2011 08:52:37 +0000 (10:52 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 15 May 2011 13:34:15 +0000 (15:34 +0200)
* libguile/__scm.h: Remove #undef ENGNOT.
* libguile/numbers.c (idbl2str): Remove #ifdef ENGNOT sections.

libguile/__scm.h
libguile/numbers.c

index e3ba752..8103964 100644 (file)
 /* #define GUILE_DEBUG_FREELIST */
 
 
-/* Use engineering notation when converting numbers strings?
- */
-#undef ENGNOT
-
 \f
 /* {Unsupported Options}
  *
index 057a69c..9002a38 100644 (file)
@@ -5109,12 +5109,6 @@ idbl2str (double f, char *a, int radix)
       exp++;
     }
  zero:
-#ifdef ENGNOT 
-  /* adding 9999 makes this equivalent to abs(x) % 3 */
-  dpt = (exp + 9999) % 3;
-  exp -= dpt++;
-  efmt = 1;
-#else
   efmt = (exp < -3) || (exp > wp + 2);
   if (!efmt)
     {
@@ -5131,7 +5125,6 @@ idbl2str (double f, char *a, int radix)
     }
   else
     dpt = 1;
-#endif
 
   do
     {
@@ -5153,7 +5146,6 @@ idbl2str (double f, char *a, int radix)
 
   if (dpt > 0)
     {
-#ifndef ENGNOT
       if ((dpt > 4) && (exp > 6))
        {
          d = (a[0] == '-' ? 2 : 1);
@@ -5163,7 +5155,6 @@ idbl2str (double f, char *a, int radix)
          efmt = 1;
        }
       else
-#endif
        {
          while (--dpt)
            a[ch++] = '0';