bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] proposed patch to mathl module to assume C89 or better


From: Paul Eggert
Subject: [Bug-gnulib] proposed patch to mathl module to assume C89 or better
Date: 08 Sep 2003 15:49:07 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

gnulib is now assuming C89 or better.  I looked through gnulib for K&R
code and found the following relics in the mathl module.  OK to
install the following patch?

2003-09-08  Paul Eggert  <address@hidden>

        * acosl.c (main): Use a prototype.
        * asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
        tanl.c: Likewise.

Index: lib/acosl.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/acosl.c,v
retrieving revision 1.1
diff -p -u -r1.1 acosl.c
--- lib/acosl.c 18 Feb 2003 17:05:23 -0000      1.1
+++ lib/acosl.c 8 Sep 2003 22:43:59 -0000
@@ -186,7 +186,8 @@ acosl (long double x)
 }
 
 #if 0
-main()
+int
+main (void)
 {
   printf ("%.18Lg %.18Lg\n",
           acosl(1.0L),
Index: lib/asinl.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/asinl.c,v
retrieving revision 1.1
diff -p -u -r1.1 asinl.c
--- lib/asinl.c 18 Feb 2003 17:05:23 -0000      1.1
+++ lib/asinl.c 8 Sep 2003 22:43:59 -0000
@@ -188,7 +188,8 @@ asinl (long double x)
 }
 
 #if 0
-main()
+int
+main (void)
 {
   printf ("%.18Lg %.18Lg\n",
           asinl(1.0L),
Index: lib/cosl.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/cosl.c,v
retrieving revision 1.1
diff -p -u -r1.1 cosl.c
--- lib/cosl.c  18 Feb 2003 17:05:23 -0000      1.1
+++ lib/cosl.c  8 Sep 2003 22:43:59 -0000
@@ -83,7 +83,7 @@ long double cosl(long double x)
 
 #if 0
 int
-main ()
+main (void)
 {
   printf ("%.16Lg\n", cosl(0.7853981633974483096156608458198757210492));
   printf ("%.16Lg\n", cosl(0.7853981633974483096156608458198757210492 *29));
Index: lib/expl.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/expl.c,v
retrieving revision 1.2
diff -p -u -r1.2 expl.c
--- lib/expl.c  14 Jul 2003 16:36:07 -0000      1.2
+++ lib/expl.c  8 Sep 2003 22:43:59 -0000
@@ -119,7 +119,7 @@ expl (long double x)
 
 #if 0
 int
-main ()
+main (void)
 {
   printf ("%.16Lg\n", expl(1.0L));
   printf ("%.16Lg\n", expl(-1.0L));
Index: lib/frexpl.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/frexpl.c,v
retrieving revision 1.2
diff -p -u -r1.2 frexpl.c
--- lib/frexpl.c        14 Jul 2003 16:36:07 -0000      1.2
+++ lib/frexpl.c        8 Sep 2003 22:43:59 -0000
@@ -79,7 +79,7 @@ frexpl(long double x, int *exp)
 
 #if 0
 int
-main()
+main (void)
 {
   long double x;
   int y;
Index: lib/ldexpl.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/ldexpl.c,v
retrieving revision 1.2
diff -p -u -r1.2 ldexpl.c
--- lib/ldexpl.c        14 Jul 2003 16:36:07 -0000      1.2
+++ lib/ldexpl.c        8 Sep 2003 22:43:59 -0000
@@ -51,7 +51,7 @@ ldexpl(long double x, int exp)
 
 #if 0
 int
-main()
+main (void)
 {
   long double x;
   int y;
Index: lib/sinl.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/sinl.c,v
retrieving revision 1.1
diff -p -u -r1.1 sinl.c
--- lib/sinl.c  18 Feb 2003 17:05:23 -0000      1.1
+++ lib/sinl.c  8 Sep 2003 22:43:59 -0000
@@ -87,7 +87,7 @@ sinl (long double x)
 
 #if 0
 int
-main ()
+main (void)
 {
   printf ("%.16Lg\n", sinl(0.7853981633974483096156608458198757210492));
   printf ("%.16Lg\n", sinl(0.7853981633974483096156608458198757210492 *29));
Index: lib/tanl.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/tanl.c,v
retrieving revision 1.1
diff -p -u -r1.1 tanl.c
--- lib/tanl.c  18 Feb 2003 17:05:23 -0000      1.1
+++ lib/tanl.c  8 Sep 2003 22:44:00 -0000
@@ -210,7 +210,7 @@ tanl (long double x)
 
 #if 0
 int
-main ()
+main (void)
 {
   printf ("%.16Lg\n", tanl(0.7853981633974483096156608458198757210492));
   printf ("%.16Lg\n", tanl(-0.7853981633974483096156608458198757210492));




reply via email to

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