fixed a minor bug in Awk.cpp

This commit is contained in:
hyung-hwan 2011-05-24 11:07:13 +00:00
parent ef13e990cb
commit 5577499bfb

View File

@ -1,5 +1,5 @@
/* /*
* $Id: Awk.cpp 474 2011-05-23 16:52:37Z hyunghwan.chung $ * $Id: Awk.cpp 476 2011-05-23 17:07:13Z hyunghwan.chung $
* *
Copyright 2006-2011 Chung, Hyung-Hwan. Copyright 2006-2011 Chung, Hyung-Hwan.
This file is part of QSE. This file is part of QSE.
@ -1076,6 +1076,14 @@ int Awk::open ()
memset (&prm, 0, QSE_SIZEOF(prm)); memset (&prm, 0, QSE_SIZEOF(prm));
prm.sprintf = sprintf; prm.sprintf = sprintf;
prm.math.pow = pow; prm.math.pow = pow;
prm.math.sin = sin;
prm.math.cos = cos;
prm.math.tan = tan;
prm.math.atan = atan;
prm.math.atan2 = atan2;
prm.math.log = log;
prm.math.exp = exp;
prm.math.sqrt = sqrt;
awk = qse_awk_open (this->getMmgr(), QSE_SIZEOF(xtn_t), &prm); awk = qse_awk_open (this->getMmgr(), QSE_SIZEOF(xtn_t), &prm);
if (awk == QSE_NULL) if (awk == QSE_NULL)