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

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

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 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
Index: fusl/src/ctype/iswalpha.c
diff --git a/fusl/src/ctype/iswalpha.c b/fusl/src/ctype/iswalpha.c
index 00f9d81f5a7899d4748d35457928e5d2a342d5c8..b062a6f8c438ac5c0a04f30395c03d9da12f5b99 100644
--- a/fusl/src/ctype/iswalpha.c
+++ b/fusl/src/ctype/iswalpha.c
@@ -5,18 +5,16 @@ static const unsigned char table[] = {
#include "alpha.h"
};
-int iswalpha(wint_t wc)
-{
- if (wc<0x20000U)
- return (table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1;
- if (wc<0x2fffeU)
- return 1;
- return 0;
+int iswalpha(wint_t wc) {
+ if (wc < 0x20000U)
+ return (table[table[wc >> 8] * 32 + ((wc & 255) >> 3)] >> (wc & 7)) & 1;
+ if (wc < 0x2fffeU)
+ return 1;
+ return 0;
}
-int __iswalpha_l(wint_t c, locale_t l)
-{
- return iswalpha(c);
+int __iswalpha_l(wint_t c, locale_t l) {
+ return iswalpha(c);
}
weak_alias(__iswalpha_l, iswalpha_l);

Powered by Google App Engine
This is Rietveld 408576698