Assume ANSI C in modules/src/flt_arith
Remove the #include "ansi.h" and always use the prototypes.
This commit is contained in:
parent
7f64fe96c7
commit
5c62ec2d8f
|
@ -7,8 +7,6 @@
|
||||||
#ifndef __FLT_INCLUDED__
|
#ifndef __FLT_INCLUDED__
|
||||||
#define __FLT_INCLUDED__
|
#define __FLT_INCLUDED__
|
||||||
|
|
||||||
#include "ansi.h"
|
|
||||||
|
|
||||||
#ifndef arith
|
#ifndef arith
|
||||||
#define arith long
|
#define arith long
|
||||||
#endif
|
#endif
|
||||||
|
@ -33,17 +31,17 @@ extern int flt_status;
|
||||||
|
|
||||||
#define FLT_STRLEN 32 /* max length of result of flt_flt2str() */
|
#define FLT_STRLEN 32 /* max length of result of flt_flt2str() */
|
||||||
|
|
||||||
_PROTOTYPE(void flt_add, (flt_arith *, flt_arith *, flt_arith *));
|
void flt_add(flt_arith *, flt_arith *, flt_arith *);
|
||||||
_PROTOTYPE(void flt_sub, (flt_arith *, flt_arith *, flt_arith *));
|
void flt_sub(flt_arith *, flt_arith *, flt_arith *);
|
||||||
_PROTOTYPE(void flt_mul, (flt_arith *, flt_arith *, flt_arith *));
|
void flt_mul(flt_arith *, flt_arith *, flt_arith *);
|
||||||
_PROTOTYPE(void flt_div, (flt_arith *, flt_arith *, flt_arith *));
|
void flt_div(flt_arith *, flt_arith *, flt_arith *);
|
||||||
_PROTOTYPE(void flt_modf, (flt_arith *, flt_arith *, flt_arith *));
|
void flt_modf(flt_arith *, flt_arith *, flt_arith *);
|
||||||
_PROTOTYPE(int flt_cmp, (flt_arith *, flt_arith *));
|
int flt_cmp(flt_arith *, flt_arith *);
|
||||||
_PROTOTYPE(void flt_str2flt, (char *, flt_arith *));
|
void flt_str2flt(char *, flt_arith *);
|
||||||
_PROTOTYPE(void flt_flt2str, (flt_arith *, char *, int));
|
void flt_flt2str(flt_arith *, char *, int);
|
||||||
_PROTOTYPE(void flt_arith2flt, (arith, flt_arith *, int));
|
void flt_arith2flt(arith, flt_arith *, int);
|
||||||
_PROTOTYPE(arith flt_flt2arith, (flt_arith *, int));
|
arith flt_flt2arith(flt_arith *, int);
|
||||||
_PROTOTYPE(void flt_b64_sft, (struct flt_mantissa *, int));
|
void flt_b64_sft(struct flt_mantissa *, int);
|
||||||
_PROTOTYPE(void flt_umin, (flt_arith *));
|
void flt_umin(flt_arith *);
|
||||||
|
|
||||||
#endif /* __FLT_INCLUDED__ */
|
#endif /* __FLT_INCLUDED__ */
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
#define flt_b64_add _flt_64add
|
#define flt_b64_add _flt_64add
|
||||||
#define flt_split _flt_split
|
#define flt_split _flt_split
|
||||||
|
|
||||||
_PROTOTYPE(int ucmp, (long, long));
|
int ucmp(long, long);
|
||||||
_PROTOTYPE(void flt_nrm, (flt_arith *));
|
void flt_nrm(flt_arith *);
|
||||||
_PROTOTYPE(void flt_chk, (flt_arith *));
|
void flt_chk(flt_arith *);
|
||||||
_PROTOTYPE(int flt_b64_add, (struct flt_mantissa *, struct flt_mantissa *));
|
int flt_b64_add(struct flt_mantissa *, struct flt_mantissa *);
|
||||||
_PROTOTYPE(void flt_split, (flt_arith *, unsigned short *));
|
void flt_split(flt_arith *, unsigned short *);
|
||||||
|
|
Loading…
Reference in a new issue