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

Side by Side Diff: fusl/src/internal/shgetc.h

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 unified diff | Download patch
OLDNEW
1 #include "stdio_impl.h" 1 #include "stdio_impl.h"
2 2
3 void __shlim(FILE *, off_t); 3 void __shlim(FILE*, off_t);
4 int __shgetc(FILE *); 4 int __shgetc(FILE*);
5 5
6 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend)) 6 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend))
7 #define shlim(f, lim) __shlim((f), (lim)) 7 #define shlim(f, lim) __shlim((f), (lim))
8 #define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : __shgetc(f)) 8 #define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : __shgetc(f))
9 #define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0) 9 #define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698