Commit 33d7754e authored by unknown's avatar unknown

Moved errno to strtod.c as one can use m_string.h without errno.h

parent a6f89625
...@@ -218,9 +218,6 @@ extern int is_prefix(const char *, const char *); ...@@ -218,9 +218,6 @@ extern int is_prefix(const char *, const char *);
/* Conversion routines */ /* Conversion routines */
double my_strtod(const char *str, char **end); double my_strtod(const char *str, char **end);
double my_atof(const char *nptr); double my_atof(const char *nptr);
#ifndef EOVERFLOW
#define EOVERFLOW 84
#endif
#ifdef USE_MY_ITOA #ifdef USE_MY_ITOA
extern char *my_itoa(int val,char *dst,int radix); extern char *my_itoa(int val,char *dst,int radix);
......
...@@ -26,9 +26,13 @@ ...@@ -26,9 +26,13 @@
*/ */
#include "my_base.h" #include "my_base.h" /* Includes errno.h */
#include "m_ctype.h" #include "m_ctype.h"
#ifndef EOVERFLOW
#define EOVERFLOW 84
#endif
static double scaler10[] = { static double scaler10[] = {
1.0, 1e10, 1e20, 1e30, 1e40, 1e50, 1e60, 1e70, 1e80, 1e90 1.0, 1e10, 1e20, 1e30, 1e40, 1e50, 1e60, 1e70, 1e80, 1e90
}; };
...@@ -37,10 +41,6 @@ static double scaler1[] = { ...@@ -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 my_strtod(const char *str, char **end)
{ {
double result= 0.0; double result= 0.0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment