this patch was never right, because '#define tgamma gamma' would

define tgamma that'd compute natural logarithm of gamma function,
and not gamma function itself, therefore completely different values

e.g. parser 4! yields 3.178054 which is obviously wrong

though on vax this patch used to be right.  :-)

tested by, and ok sthen@
This commit is contained in:
martynas 2008-07-08 20:42:24 +00:00
parent 01914714b6
commit 5266580b5b
2 changed files with 3 additions and 13 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.6 2008/02/09 13:18:16 espie Exp $
# $OpenBSD: Makefile,v 1.7 2008/07/08 20:42:24 martynas Exp $
COMMENT = K Desktop Environment, edu
DISTNAME = kdeedu-${VERSION}
PKGNAME = ${DISTNAME}
PKGNAME = ${DISTNAME}p0
SHARED_LIBS += compoundviewer 0.0 # .4.0
SHARED_LIBS += extdate 5.0 # .4.0

View File

@ -1,16 +1,6 @@
$OpenBSD: patch-kmplot_kmplot_parser_cpp,v 1.3 2008/01/22 19:59:28 espie Exp $
$OpenBSD: patch-kmplot_kmplot_parser_cpp,v 1.4 2008/07/08 20:42:24 martynas Exp $
--- kmplot/kmplot/parser.cpp.orig Sat Jan 5 00:56:47 2008
+++ kmplot/kmplot/parser.cpp Tue Jan 22 01:12:39 2008
@@ -46,6 +46,9 @@
#include <assert.h>
#include <cmath>
#include <locale.h>
+#ifdef __OpenBSD__
+#define tgamma gamma
+#endif
double Parser::m_radiansPerAngleUnit = 0;
@@ -1035,7 +1038,9 @@ bool Parser::tryConstant()
CHECK_CONSTANT( "pi", M_PI );
CHECK_CONSTANT( PiSymbol, M_PI );