ANSI C fixes
authorceriel <none@none>
Thu, 21 Oct 1993 12:50:58 +0000 (12:50 +0000)
committerceriel <none@none>
Thu, 21 Oct 1993 12:50:58 +0000 (12:50 +0000)
13 files changed:
modules/src/flt_arith/b64_sft.c
modules/src/flt_arith/flt_add.c
modules/src/flt_arith/flt_ar2flt.c
modules/src/flt_arith/flt_arith.h
modules/src/flt_arith/flt_chk.c
modules/src/flt_arith/flt_div.c
modules/src/flt_arith/flt_misc.h
modules/src/flt_arith/flt_modf.c
modules/src/flt_arith/flt_mul.c
modules/src/flt_arith/flt_nrm.c
modules/src/flt_arith/flt_str2fl.c
modules/src/flt_arith/flt_umin.c
modules/src/flt_arith/split.c

index 80f1c91..d724f38 100644 (file)
@@ -7,6 +7,9 @@
 
 #include "flt_misc.h"
 
+#if __STDC__ > 0
+void
+#endif
 flt_b64_sft(e,n)
        register struct flt_mantissa *e;
        register int n;
index 7b18834..0db127b 100644 (file)
@@ -7,6 +7,9 @@
 
 #include "flt_misc.h"
 
+#if __STDC__ > 0
+void
+#endif
 flt_add(e1,e2,e3)
        register flt_arith *e1,*e2,*e3;
 {
@@ -74,6 +77,9 @@ flt_add(e1,e2,e3)
        flt_chk(e3);
 }
 
+#if __STDC__ > 0
+void
+#endif
 flt_sub(e1,e2,e3)
        flt_arith *e1,*e2,*e3;
 {
index c714ed5..21e91a8 100644 (file)
@@ -8,6 +8,9 @@
 #include "flt_misc.h"
 #include <em_arith.h>
 
+#if __STDC__ > 0
+void
+#endif
 flt_arith2flt(n, e, uns)
        register arith n;
        register flt_arith *e;
index 98b2398..3d31b3d 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef __FLT_INCLUDED__
 #define __FLT_INCLUDED__
 
+#ifndef arith
+#define arith long
+#endif
+
 struct flt_mantissa {
        long    flt_h_32;       /* high order 32 bits of mantissa */
        long    flt_l_32;       /* low order 32 bits of mantissa */
@@ -26,4 +30,21 @@ extern int   flt_status;
 #define FLT_BTSM       020
 
 #define FLT_STRLEN     32      /* max length of result of flt_flt2str() */
+
+#if __STDC__ > 0
+void flt_add(flt_arith *, flt_arith *, flt_arith *);
+void flt_sub(flt_arith *, flt_arith *, flt_arith *);
+void flt_mul(flt_arith *, flt_arith *, flt_arith *);
+void flt_div(flt_arith *, flt_arith *, flt_arith *);
+void flt_modf(flt_arith *, flt_arith *, flt_arith *);
+int flt_cmp(flt_arith *, flt_arith *);
+void flt_str2flt(char *, flt_arith *);
+void flt_flt2str(flt_arith *, char *, int);
+void flt_arith2flt(arith, flt_arith *, int);
+arith flt_flt2arith(flt_arith *, int);
+void flt_b64_sft(struct flt_mantissa *, int);
+void flt_umin(flt_arith *);
+#else
+arith flt_flt2arith();
+#endif
 #endif /* __FLT_INCLUDED__ */
index 112ccb9..bfdd332 100644 (file)
@@ -8,7 +8,9 @@
 #include "flt_misc.h"
 
 int    flt_status = 0;
-
+#if __STDC__ > 0
+void
+#endif
 flt_chk(e)
        register flt_arith *e;
 {
index 5413aa1..dc8aea3 100644 (file)
@@ -6,7 +6,9 @@
 /* $Header$ */
 
 #include "flt_misc.h"
-
+#if __STDC__ > 0
+void
+#endif
 flt_div(e1,e2,e3)
        register flt_arith *e1,*e2,*e3;
 {
index 0720cd8..467c6fb 100644 (file)
 #define flt_chk                _flt_chk
 #define flt_b64_add    _flt_64add
 #define flt_split      _flt_split
+
+#if __STDC__ > 0
+int ucmp(long, long);
+void flt_nrm(flt_arith *);
+void flt_chk(flt_arith *);
+int flt_b64_add(struct flt_mantissa *, struct flt_mantissa *);
+void flt_split(flt_arith *, unsigned short *);
+#endif
index 32c97ee..675c26b 100644 (file)
@@ -6,7 +6,9 @@
 /* $Header$ */
 
 #include "flt_misc.h"
-
+#if __STDC__ > 0
+void
+#endif
 flt_modf(e, ipart, fpart)
        register flt_arith *e, *ipart, *fpart;
 {
index 6954346..caac6b7 100644 (file)
@@ -6,7 +6,9 @@
 /* $Header$ */
 
 #include "flt_misc.h"
-
+#if __STDC__ > 0
+void
+#endif
 flt_mul(e1,e2,e3)
        register flt_arith *e1,*e2,*e3;
 {
index 3d634f0..df6d75c 100644 (file)
@@ -6,7 +6,9 @@
 /* $Header$ */
 
 #include "flt_misc.h"
-
+#if __STDC__ > 0
+void
+#endif
 flt_nrm(e)
        register flt_arith *e;
 {
index 6612639..f9936ba 100644 (file)
@@ -217,7 +217,9 @@ add_exponent(e, exp)
        if (!status) status = flt_status;
        flt_status = status;
 }
-
+#if __STDC__ > 0
+void
+#endif
 flt_str2flt(s, e)
        register char           *s;
        register flt_arith      *e;
@@ -418,7 +420,9 @@ flt_ecvt(e, decpt, sign)
        }
        return buf;
 }
-
+#if __STDC__ > 0
+void
+#endif
 flt_flt2str(e, buf, bufsize)
        flt_arith *e;
        char *buf;
index 1d16bbf..182eb7f 100644 (file)
@@ -6,7 +6,9 @@
 /* $Header$ */
 
 #include "flt_misc.h"
-
+#if __STDC__ > 0
+void
+#endif
 flt_umin(e)
        flt_arith *e;
 {
index 6c619ed..d5c0344 100644 (file)
@@ -1,7 +1,9 @@
 /* $Header$ */
 
 #include "flt_misc.h"
-
+#if __STDC__ > 0
+void
+#endif
 flt_split(e, p)
        register flt_arith *e;
        register unsigned short *p;