diff options
author | unknown <bar@bar.mysql.r18.ru> | 2002-11-13 17:58:07 +0400 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2002-11-13 17:58:07 +0400 |
commit | 7721c7582a5d0b03435e4c0a7001fd3b4bf424de (patch) | |
tree | 29d80d59a59ccbe38fba62e3ea0f8d5fc34b4b27 | |
parent | 81d428bd5a61708b711d18814becde5c16502c74 (diff) | |
download | mariadb-git-7721c7582a5d0b03435e4c0a7001fd3b4bf424de.tar.gz |
Some macros to make life easier
-rw-r--r-- | include/m_ctype.h | 6 | ||||
-rw-r--r-- | sql/gstream.cc | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/m_ctype.h b/include/m_ctype.h index fd10d7325c2..bee6e51c483 100644 --- a/include/m_ctype.h +++ b/include/m_ctype.h @@ -233,6 +233,12 @@ extern int my_strncasecmp_mb(CHARSET_INFO * cs,const char *, const char *t, uint #define my_strcasecmp(s, a, b) ((s)->strcasecmp((s), (a), (b))) #define my_strncasecmp(s, a, b, l) ((s)->strncasecmp((s), (a), (b), (l))) +#define my_strtol(s, a, b, c) ((s)->strtol((s),(a),(b),(c))) +#define my_strtoul(s, a, b, c) ((s)->strtoul((s),(a),(b),(c))) +#define my_strtoll(s, a, b, c) ((s)->strtoll((s),(a),(b),(c))) +#define my_strtoull(s, a, b, c) ((s)->strtoull((s),(a),(b),(c))) +#define my_strtod(s, a, b) ((s)->strtod((s),(a),(b))) + /* XXX: still need to take care of this one */ #ifdef MY_CHARSET_TIS620 diff --git a/sql/gstream.cc b/sql/gstream.cc index 5a58fef6744..bd2345212c3 100644 --- a/sql/gstream.cc +++ b/sql/gstream.cc @@ -99,7 +99,7 @@ int GTextReadStream::get_next_number(double *d) char *endptr; - *d = strtod(cur, &endptr); + *d = my_strtod(my_charset_latin1, cur, &endptr); if(endptr) { |