OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* arm.c (adjacent_mem_locations): Reject volatile memory refs.
[pf3gnuchains/gcc-fork.git]
/
libiberty
/
strtod.c
diff --git
a/libiberty/strtod.c
b/libiberty/strtod.c
index
6b69ccf
..
4f119c4
100644
(file)
--- a/
libiberty/strtod.c
+++ b/
libiberty/strtod.c
@@
-1,5
+1,5
@@
/* Implementation of strtod for systems with atof.
/* Implementation of strtod for systems with atof.
- Copyright (C) 1991, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1995
, 2002
Free Software Foundation, Inc.
This file is part of the libiberty library. This library is free
software; you can redistribute it and/or modify it under the
This file is part of the libiberty library. This library is free
software; you can redistribute it and/or modify it under the
@@
-40,16
+40,14
@@
the location referenced by @var{endptr}.
#include "ansidecl.h"
#include "safe-ctype.h"
#include "ansidecl.h"
#include "safe-ctype.h"
-extern double atof ();
+extern double atof (
const char *
);
/* Disclaimer: this is currently just used by CHILL in GDB and therefore
has not been tested well. It may have been tested for nothing except
that it compiles. */
double
/* Disclaimer: this is currently just used by CHILL in GDB and therefore
has not been tested well. It may have been tested for nothing except
that it compiles. */
double
-strtod (str, ptr)
- char *str;
- char **ptr;
+strtod (char *str, char **ptr)
{
char *p;
{
char *p;
@@
-75,7
+73,7
@@
strtod (str, ptr)
&& (p[6] == 't' || p[6] == 'T')
&& (p[7] == 'y' || p[7] == 'Y'))
{
&& (p[6] == 't' || p[6] == 'T')
&& (p[7] == 'y' || p[7] == 'Y'))
{
- *ptr = p +
7
;
+ *ptr = p +
8
;
return atof (str);
}
else
return atof (str);
}
else