Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
eb8a9e27
Commit
eb8a9e27
authored
Mar 16, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved errno to strtod.c as one can use m_string.h without errno.h
parent
37390968
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
include/m_string.h
include/m_string.h
+0
-3
strings/strtod.c
strings/strtod.c
+5
-5
No files found.
include/m_string.h
View file @
eb8a9e27
...
...
@@ -218,9 +218,6 @@ extern int is_prefix(const char *, const char *);
/* Conversion routines */
double
my_strtod
(
const
char
*
str
,
char
**
end
);
double
my_atof
(
const
char
*
nptr
);
#ifndef EOVERFLOW
#define EOVERFLOW 84
#endif
#ifdef USE_MY_ITOA
extern
char
*
my_itoa
(
int
val
,
char
*
dst
,
int
radix
);
...
...
strings/strtod.c
View file @
eb8a9e27
...
...
@@ -26,9 +26,13 @@
*/
#include "my_base.h"
#include "my_base.h"
/* Includes errno.h */
#include "m_ctype.h"
#ifndef EOVERFLOW
#define EOVERFLOW 84
#endif
static
double
scaler10
[]
=
{
1
.
0
,
1e10
,
1e20
,
1e30
,
1e40
,
1e50
,
1e60
,
1e70
,
1e80
,
1e90
};
...
...
@@ -37,10 +41,6 @@ static double scaler1[] = {
};
#ifndef HUGE_VAL
/* Should be +Infinitive */
#define HUGE_VAL DBL_MAX
#endif
double
my_strtod
(
const
char
*
str
,
char
**
end
)
{
double
result
=
0
.
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment