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

Unified Diff: fusl/src/ctype/iswpunct.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/iswpunct.c
diff --git a/fusl/src/ctype/iswpunct.c b/fusl/src/ctype/iswpunct.c
index d88010463c9f8d481c2d55e0d25b8d0898a608b4..1527a47d76f1c9167e003ce108892eba5985e996 100644
--- a/fusl/src/ctype/iswpunct.c
+++ b/fusl/src/ctype/iswpunct.c
@@ -5,16 +5,14 @@ static const unsigned char table[] = {
#include "punct.h"
};
-int iswpunct(wint_t wc)
-{
- if (wc<0x20000U)
- return (table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1;
- return 0;
+int iswpunct(wint_t wc) {
+ if (wc < 0x20000U)
+ return (table[table[wc >> 8] * 32 + ((wc & 255) >> 3)] >> (wc & 7)) & 1;
+ return 0;
}
-int __iswpunct_l(wint_t c, locale_t l)
-{
- return iswpunct(c);
+int __iswpunct_l(wint_t c, locale_t l) {
+ return iswpunct(c);
}
weak_alias(__iswpunct_l, iswpunct_l);

Powered by Google App Engine
This is Rietveld 408576698