Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: fusl/src/ctype/iswdigit.c

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/src/ctype/iswctype.c ('k') | fusl/src/ctype/iswgraph.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/ctype/iswdigit.c
diff --git a/fusl/src/ctype/iswdigit.c b/fusl/src/ctype/iswdigit.c
new file mode 100644
index 0000000000000000000000000000000000000000..ed9a88e740ad38a7bf60bed9d52ebbc23161c978
--- /dev/null
+++ b/fusl/src/ctype/iswdigit.c
@@ -0,0 +1,16 @@
+#include <wctype.h>
+#include "libc.h"
+
+#undef iswdigit
+
+int iswdigit(wint_t wc)
+{
+ return (unsigned)wc-'0' < 10;
+}
+
+int __iswdigit_l(wint_t c, locale_t l)
+{
+ return iswdigit(c);
+}
+
+weak_alias(__iswdigit_l, iswdigit_l);
« no previous file with comments | « fusl/src/ctype/iswctype.c ('k') | fusl/src/ctype/iswgraph.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698