OSDN Git Service

* libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when
authorcgf <cgf>
Fri, 5 Dec 2003 06:13:43 +0000 (06:13 +0000)
committercgf <cgf>
Fri, 5 Dec 2003 06:13:43 +0000 (06:13 +0000)
defining _mbrtowc.
* libc/stdlib/mbsinit.c: Ditto.
* libc/stdlib/mbsrtowcs.c: Ditto.
* libc/stdlib/wcrtomb.c: Ditto.
* libc/stdlib/wcsrtombs.c: Ditto.
* libc/stdlib/wctob.c: Ditto.
* libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when
defining _mbrtowc.
* libc/stdlib/mbsinit.c: Ditto.
* libc/stdlib/mbsrtowcs.c: Ditto.

newlib/ChangeLog
newlib/libc/stdlib/mbrlen.c
newlib/libc/stdlib/mbsinit.c
newlib/libc/stdlib/mbsrtowcs.c
newlib/libc/stdlib/wcrtomb.c
newlib/libc/stdlib/wcsrtombs.c
newlib/libc/stdlib/wctob.c
newlib/libm/mathfp/er_gamma.c
newlib/libm/mathfp/er_lgamma.c
newlib/libm/mathfp/erf_gamma.c
newlib/libm/mathfp/erf_lgamma.c

index 62b0036..27782ba 100644 (file)
@@ -1,5 +1,22 @@
 2003-12-05  Christopher Faylor  <cgf@redhat.com>
 
+       * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
+       when defining _mbrtowc.
+       * libc/stdlib/mbsinit.c: Ditto.
+       * libc/stdlib/mbsrtowcs.c: Ditto.
+       * libc/stdlib/wcrtomb.c: Ditto.
+       * libc/stdlib/wcsrtombs.c: Ditto.
+       * libc/stdlib/wctob.c: Ditto.
+
+2003-12-05  Christopher Faylor  <cgf@redhat.com>
+
+       * libc/stdlib/mbrlen.c: Change include order to prevent compiler
+       errors when defining _mbrtowc.
+       * libc/stdlib/mbsinit.c: Ditto.
+       * libc/stdlib/mbsrtowcs.c: Ditto.
+
+2003-12-05  Christopher Faylor  <cgf@redhat.com>
+
        * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
        errors when defining _mbrtowc.
 
index 504348d..cf14add 100644 (file)
@@ -1,7 +1,7 @@
+#include <reent.h>
 #include <wchar.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <reent.h>
 #include <errno.h>
 
 size_t
index a353cb1..e32369a 100644 (file)
@@ -1,7 +1,7 @@
+#include <reent.h>
 #include <wchar.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <reent.h>
 #include <errno.h>
 
 int
index 08d9d0c..10d3a72 100644 (file)
@@ -1,7 +1,7 @@
+#include <reent.h>
 #include <wchar.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <reent.h>
 #include <errno.h>
 
 size_t
index 0eb59ca..fbd71b1 100644 (file)
@@ -1,7 +1,7 @@
+#include <reent.h>
 #include <wchar.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <reent.h>
 #include <errno.h>
 
 size_t
index 677dfa1..11fdf92 100644 (file)
@@ -1,7 +1,7 @@
+#include <reent.h>
 #include <wchar.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <reent.h>
 #include <errno.h>
 
 size_t
index 4288c54..57187b2 100644 (file)
@@ -1,8 +1,7 @@
-#include <wchar.h>
+#include <reent.h>
 #include <wchar.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <reent.h>
 
 int
 wctob (wint_t c)
index 63758bb..0060ed0 100644 (file)
@@ -30,3 +30,8 @@
 {
        return exp (lgamma_r(x,signgamp));
 }
+
+double gamma(double x)
+{
+  return gamma_r(x, &(_REENT_SIGNGAM(_REENT)));
+}
index 65d6002..fd49c25 100644 (file)
@@ -422,3 +422,9 @@ static double zero=  0.00000000000000000000e+00;
        if(hx<0) r = nadj - r;
        return r;
 }
+
+double
+lgamma(double x)
+{
+  return lgamma_r(x, &(_REENT_SIGNGAM(_REENT)));
+}
index 16be0d0..246645d 100644 (file)
@@ -16,7 +16,7 @@
 
 /* gammaf_r(x, signgamp)
  * Reentrant version of the logarithm of the Gamma function 
- * with user provide pointer for the sign of Gamma(x). 
+ * with user provided pointer for the sign of Gamma(x). 
  *
  * Method: See lgammaf_r
  */
@@ -32,3 +32,8 @@
 {
        return expf (lgammaf_r(x,signgamp));
 }
+
+float gammaf(float x)
+{
+  return gammaf_r(x, &(_REENT_SIGNGAM(_REENT)));
+}
index 64bec0a..4f09214 100644 (file)
@@ -244,3 +244,8 @@ static float zero=  0.0000000000e+00;
        if(hx<0) r = nadj - r;
        return r;
 }
+
+float lgammaf(float x)
+{
+  return lgammaf_r(x, &(_REENT_SIGNGAM(_REENT)));
+}