[libcxx-commits] [libcxx] 53c8587 - [SystemZ][z/OS] Missing non-posix functions libc++

Zbigniew Sarbinowski via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 4 07:25:42 PST 2021


Author: Muiez Ahmed
Date: 2021-03-04T15:23:21Z
New Revision: 53c8587dcdbcd3ec6e8a0b0cca9ba231b576e1ba

URL: https://github.com/llvm/llvm-project/commit/53c8587dcdbcd3ec6e8a0b0cca9ba231b576e1ba
DIFF: https://github.com/llvm/llvm-project/commit/53c8587dcdbcd3ec6e8a0b0cca9ba231b576e1ba.diff

LOG: [SystemZ][z/OS] Missing non-posix functions libc++

The aim is to add missing non-posix functions for z/OS libc++ (strtod_l and strtof_l).

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D97051

Added: 
    

Modified: 
    libcxx/include/__support/ibm/xlocale.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__support/ibm/xlocale.h b/libcxx/include/__support/ibm/xlocale.h
index ad07a255fc95..5722eb96a2a1 100644
--- a/libcxx/include/__support/ibm/xlocale.h
+++ b/libcxx/include/__support/ibm/xlocale.h
@@ -229,21 +229,37 @@ long long strtoll_l(const char *__nptr, char **__endptr,
     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) {


        


More information about the libcxx-commits mailing list