[libcxx-commits] [PATCH] D97051: [SystemZ][z/OS] Missing non-posix functions libc++
Muiez Ahmed via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 19 07:45:56 PST 2021
muiez created this revision.
muiez added reviewers: zibi, libc++.
muiez requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.
The aim is to add missing non-posix functions for z/OS libc++ (strtod_l and strtof_l).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97051
Files:
libcxx/include/__support/ibm/xlocale.h
Index: libcxx/include/__support/ibm/xlocale.h
===================================================================
--- libcxx/include/__support/ibm/xlocale.h
+++ libcxx/include/__support/ibm/xlocale.h
@@ -229,21 +229,37 @@
int __base, locale_t locale) {
return strtoll(__nptr, __endptr, __base);
}
+
static inline
long strtol_l(const char *__nptr, char **__endptr,
int __base, locale_t locale) {
return strtol(__nptr, __endptr, __base);
}
+
+static inline
+double strtod_l(const char *__nptr, char **__endptr,
+ locale_t locale) {
+ return strtod(__nptr, __endptr);
+}
+
+static inline
+float strtof_l(const char *__nptr, char **__endptr,
+ locale_t locale) {
+ return strtof(__nptr, __endptr);
+}
+
static inline
long double strtold_l(const char *__nptr, char **__endptr,
locale_t locale) {
return strtold(__nptr, __endptr);
}
+
static inline
unsigned long long strtoull_l(const char *__nptr, char **__endptr,
int __base, locale_t locale) {
return strtoull(__nptr, __endptr, __base);
}
+
static inline
unsigned long strtoul_l(const char *__nptr, char **__endptr,
int __base, locale_t locale) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97051.324979.patch
Type: text/x-patch
Size: 1151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210219/8311946e/attachment.bin>
More information about the libcxx-commits
mailing list