summaryrefslogtreecommitdiff
path: root/strings/strto.c
diff options
context:
space:
mode:
authorvenu@myvenu.com <>2003-02-20 14:14:37 -0800
committervenu@myvenu.com <>2003-02-20 14:14:37 -0800
commitee2b88869675b3393b23f4f7d9fe253873fd613f (patch)
tree5acab851085621a0ba8465cb1069b4dc1e3377cc /strings/strto.c
parentaf9a92cf37efcd9d5cee65e56fd6aa52228c4281 (diff)
downloadmariadb-git-ee2b88869675b3393b23f4f7d9fe253873fd613f.tar.gz
Windows portabilty fixups (last commit caused some errors, so recomitting) - SCRUM
Diffstat (limited to 'strings/strto.c')
-rw-r--r--strings/strto.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/strings/strto.c b/strings/strto.c
index 8b838fd00f9..6f12656cb20 100644
--- a/strings/strto.c
+++ b/strings/strto.c
@@ -95,7 +95,7 @@ function (const char *nptr,char **endptr,int base)
s = nptr;
/* Skip white space. */
- while (my_isspace (my_charset_latin1, *s))
+ while (my_isspace (&my_charset_latin1, *s))
++s;
if (*s == '\0')
{
@@ -115,7 +115,7 @@ function (const char *nptr,char **endptr,int base)
}
- if (base == 16 && s[0] == '0' && my_toupper (my_charset_latin1, s[1]) == 'X')
+ if (base == 16 && s[0] == '0' && my_toupper (&my_charset_latin1, s[1]) == 'X')
s += 2;
/* If BASE is zero, figure it out ourselves. */
@@ -123,7 +123,7 @@ function (const char *nptr,char **endptr,int base)
{
if (*s == '0')
{
- if (my_toupper (my_charset_latin1, s[1]) == 'X')
+ if (my_toupper (&my_charset_latin1, s[1]) == 'X')
{
s += 2;
base = 16;
@@ -145,10 +145,10 @@ function (const char *nptr,char **endptr,int base)
i = 0;
for (c = *s; c != '\0'; c = *++s)
{
- if (my_isdigit (my_charset_latin1, c))
+ if (my_isdigit (&my_charset_latin1, c))
c -= '0';
- else if (my_isalpha (my_charset_latin1, c))
- c = my_toupper (my_charset_latin1, c) - 'A' + 10;
+ else if (my_isalpha (&my_charset_latin1, c))
+ c = my_toupper (&my_charset_latin1, c) - 'A' + 10;
else
break;
if (c >= base)