Some macros to make life easier

This commit is contained in:
bar@bar.mysql.r18.ru 2002-11-13 17:58:07 +04:00
parent ae7d6838b2
commit f628df0768
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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)
{