Now exports the __strtoXX_internal() functions from glibc, too - some

apps are using those.
Their implementation is currently not complete; they just call the
public functions, the group argument is ignored.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8277 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-07-02 17:54:40 +00:00
parent d7105e5d8b
commit 056f3c62e3
5 changed files with 64 additions and 0 deletions

View File

@ -1601,6 +1601,18 @@ strtod(const char * __restrict s00, char ** __restrict se)
}
double __strtod_internal(const char *number, char **_end, int group);
double
__strtod_internal(const char *number, char **_end, int group)
{
// ToDo: group is currently not supported!
(void)group;
return strtod(number, _end);
}
/* removed from the build, is only used by __dtoa() */
#if 0
static int

View File

@ -135,3 +135,16 @@ noconv:
*endptr = (char *)(any ? s - 1 : nptr);
return (acc);
}
long __strtol_internal(const char *number, char **_end, int base, int group);
long
__strtol_internal(const char *number, char **_end, int base, int group)
{
// ToDo: group is currently not supported!
(void)group;
return strtol(number, _end, base);
}

View File

@ -137,3 +137,16 @@ noconv:
return acc;
}
long long __strtoll_internal(const char *number, char **_end, int base, int group);
long long
__strtoll_internal(const char *number, char **_end, int base, int group)
{
// ToDo: group is currently not supported!
(void)group;
return strtoll(number, _end, base);
}

View File

@ -114,3 +114,16 @@ noconv:
*endptr = (char *)(any ? s - 1 : nptr);
return (acc);
}
unsigned long __strtoul_internal(const char *number, char **_end, int base, int group);
unsigned long
__strtoul_internal(const char *number, char **_end, int base, int group)
{
// ToDo: group is currently not supported!
(void)group;
return strtoul(number, _end, base);
}

View File

@ -115,3 +115,16 @@ noconv:
return acc;
}
unsigned long long __strtoull_internal(const char *number, char **_end, int base, int group);
unsigned long long
__strtoull_internal(const char *number, char **_end, int base, int group)
{
// ToDo: group is currently not supported!
(void)group;
return strtoull(number, _end, base);
}