Commit 7721c758 authored by unknown's avatar unknown

Some macros to make life easier

parent 81d428bd
...@@ -233,6 +233,12 @@ extern int my_strncasecmp_mb(CHARSET_INFO * cs,const char *, const char *t, uint ...@@ -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_strcasecmp(s, a, b) ((s)->strcasecmp((s), (a), (b)))
#define my_strncasecmp(s, a, b, l) ((s)->strncasecmp((s), (a), (b), (l))) #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 */ /* XXX: still need to take care of this one */
#ifdef MY_CHARSET_TIS620 #ifdef MY_CHARSET_TIS620
......
...@@ -99,7 +99,7 @@ int GTextReadStream::get_next_number(double *d) ...@@ -99,7 +99,7 @@ int GTextReadStream::get_next_number(double *d)
char *endptr; char *endptr;
*d = strtod(cur, &endptr); *d = my_strtod(my_charset_latin1, cur, &endptr);
if(endptr) if(endptr)
{ {
......
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