natMath.cc: Declare fabsf() function.
2000-12-02 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/natMath.cc: Declare fabsf() function. * java/lang/mprec.h: Don't include math.h. * java/lang/dtoa.c: Include string.h. * java/lang/natString.cc (toLowerCase): Initialize ch to prevent compiler warning. From-SVN: r37938
This commit is contained in:
parent
92f3752a64
commit
db5e49032b
5 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
|
||||||
|
|
||||||
|
* java/lang/natMath.cc: Declare fabsf() function.
|
||||||
|
* java/lang/mprec.h: Don't include math.h.
|
||||||
|
* java/lang/dtoa.c: Include string.h.
|
||||||
|
* java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
|
||||||
|
compiler warning.
|
||||||
|
|
||||||
2000-12-01 Warren Levy <warrenl@cygnus.com>
|
2000-12-01 Warren Levy <warrenl@cygnus.com>
|
||||||
|
|
||||||
* Makefile.am: Added entries for new java.sql modules.
|
* Makefile.am: Added entries for new java.sql modules.
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mprec.h"
|
#include "mprec.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_DEFUN (quorem,
|
_DEFUN (quorem,
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "ieeefp.h"
|
#include "ieeefp.h"
|
||||||
|
|
||||||
#include <math.h>
|
// #include <math.h>
|
||||||
// #include <float.h>
|
// #include <float.h>
|
||||||
// #include <errno.h>
|
// #include <errno.h>
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,8 @@ details. */
|
||||||
|
|
||||||
#include "fdlibm.h"
|
#include "fdlibm.h"
|
||||||
|
|
||||||
|
extern "C" float fabsf (float);
|
||||||
|
|
||||||
jdouble java::lang::Math::cos(jdouble x)
|
jdouble java::lang::Math::cos(jdouble x)
|
||||||
{
|
{
|
||||||
return (jdouble)::cos((double)x);
|
return (jdouble)::cos((double)x);
|
||||||
|
|
|
@ -768,7 +768,7 @@ java::lang::String::toLowerCase (java::util::Locale *locale)
|
||||||
{
|
{
|
||||||
jint i;
|
jint i;
|
||||||
jchar* chrs = JvGetStringChars(this);
|
jchar* chrs = JvGetStringChars(this);
|
||||||
jchar ch;
|
jchar ch = 0;
|
||||||
|
|
||||||
bool handle_tr = false;
|
bool handle_tr = false;
|
||||||
if (locale != NULL)
|
if (locale != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue