diff options
author | Larry Rosenman <ler@FreeBSD.org> | 2017-10-13 00:37:31 +0000 |
---|---|---|
committer | Larry Rosenman <ler@FreeBSD.org> | 2017-10-13 00:37:31 +0000 |
commit | f38c70f1790cd3256aca816f3187012e7690f7a5 (patch) | |
tree | 83fe6056a015e4d636786dcdd3855e2c67dfe00f /math/rexx-regmath/files/patch-rexxmath.c | |
parent | multimedia/qt5-multimedia: Use option helpers and turn on ALSA option by (diff) |
New port: math/rexx-regmath
regmath contains two different implementations of math libraries for the REXX language.
PR: 221573
Submitted by: bob@eager.cx
Notes
Notes:
svn path=/head/; revision=451939
Diffstat (limited to 'math/rexx-regmath/files/patch-rexxmath.c')
-rw-r--r-- | math/rexx-regmath/files/patch-rexxmath.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/math/rexx-regmath/files/patch-rexxmath.c b/math/rexx-regmath/files/patch-rexxmath.c new file mode 100644 index 000000000000..ed92e4c57bb7 --- /dev/null +++ b/math/rexx-regmath/files/patch-rexxmath.c @@ -0,0 +1,38 @@ +--- rexxmath.c.orig 2001-11-04 21:51:10 UTC ++++ rexxmath.c +@@ -19,7 +19,7 @@ + static double cotan(const double arg); + static double csc(const double arg); + static double sec(const double arg); +-static double round(const double arg); ++static double xround(const double arg); + + #if defined(__EMX__) || defined(_WIN32) + static double acosh(double arg); +@@ -48,7 +48,7 @@ static struct funclist { + "ln", log, /* Log base e ln(x) log x > 0.0 */ + "log", log, /* Log base e ln(x) log x > 0.0 */ + "log10", log10, /* Log base 10 log10(x) x > 0.0 */ +- "nint", round, /* nearest integer */ ++ "nint", xround, /* nearest integer */ + "sec", sec, /* secant */ + "sin", sin, /* sine */ + "sinh", sinh, /* hyperbolic sine */ +@@ -70,7 +70,7 @@ rxfunc(mathfunc1) + + checkparam(1,1); + +- afunc.name = fname; ++ afunc.name = (char *) fname; + theFunc = (struct funclist *)bsearch(&afunc, mathfuncs,DIM(mathfuncs) + , sizeof(*theFunc), findmathfunc); + +@@ -158,7 +158,7 @@ rxfunc(mathfact) + } + + /* Nearest integer to x nint(x) */ +-static double round(const double arg) ++static double xround(const double arg) + { + return floor(arg+.5); + } |