diff options
author | unknown <monty@mysql.com> | 2004-03-16 00:04:06 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-03-16 00:04:06 +0200 |
commit | 33d7754e4dcd48fde8444a7bbb2094cc53f27529 (patch) | |
tree | 13a9662767d47fb42dda37aeb69ec8b6fb36c513 | |
parent | a6f89625fc49333d11cb9875b71b4114a28aa47b (diff) | |
download | mariadb-git-33d7754e4dcd48fde8444a7bbb2094cc53f27529.tar.gz |
Moved errno to strtod.c as one can use m_string.h without errno.h
-rw-r--r-- | include/m_string.h | 3 | ||||
-rw-r--r-- | strings/strtod.c | 10 |
2 files changed, 5 insertions, 8 deletions
diff --git a/include/m_string.h b/include/m_string.h index 73c8a385a70..21aa736acd4 100644 --- a/include/m_string.h +++ b/include/m_string.h @@ -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); diff --git a/strings/strtod.c b/strings/strtod.c index 92a4700cfc4..aa0f7aa4336 100644 --- a/strings/strtod.c +++ b/strings/strtod.c @@ -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; |