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:
@@ -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() */
|
/* removed from the build, is only used by __dtoa() */
|
||||||
#if 0
|
#if 0
|
||||||
static int
|
static int
|
||||||
|
|||||||
@@ -135,3 +135,16 @@ noconv:
|
|||||||
*endptr = (char *)(any ? s - 1 : nptr);
|
*endptr = (char *)(any ? s - 1 : nptr);
|
||||||
return (acc);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -137,3 +137,16 @@ noconv:
|
|||||||
|
|
||||||
return acc;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,3 +114,16 @@ noconv:
|
|||||||
*endptr = (char *)(any ? s - 1 : nptr);
|
*endptr = (char *)(any ? s - 1 : nptr);
|
||||||
return (acc);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,3 +115,16 @@ noconv:
|
|||||||
|
|
||||||
return acc;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user