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

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

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space 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
« no previous file with comments | « fusl/src/internal/dynlink.h ('k') | fusl/src/internal/syscall.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef _STDIO_IMPL_H 1 #ifndef _STDIO_IMPL_H
2 #define _STDIO_IMPL_H 2 #define _STDIO_IMPL_H
3 3
4 #include <stdio.h> 4 #include <stdio.h>
5 #include "syscall.h" 5 #include "syscall.h"
6 #include "libc.h" 6 #include "libc.h"
7 7
8 #define UNGET 8 8 #define UNGET 8
9 9
10 #define FFINALLOCK(f) ((f)->lock>=0 ? __lockfile((f)) : 0) 10 #define FFINALLOCK(f) ((f)->lock>=0 ? __lockfile((f)) : 0)
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 FILE *__ofl_add(FILE *f); 79 FILE *__ofl_add(FILE *f);
80 FILE **__ofl_lock(void); 80 FILE **__ofl_lock(void);
81 void __ofl_unlock(void); 81 void __ofl_unlock(void);
82 82
83 #define feof(f) ((f)->flags & F_EOF) 83 #define feof(f) ((f)->flags & F_EOF)
84 #define ferror(f) ((f)->flags & F_ERR) 84 #define ferror(f) ((f)->flags & F_ERR)
85 85
86 #define getc_unlocked(f) \ 86 #define getc_unlocked(f) \
87 ( ((f)->rpos < (f)->rend) ? *(f)->rpos++ : __uflow((f)) ) 87 ( ((f)->rpos < (f)->rend) ? *(f)->rpos++ : __uflow((f)) )
88 88
89 #define putc_unlocked(c, f) ( ((c)!=(f)->lbf && (f)->wpos<(f)->wend) \ 89 #define putc_unlocked(c, f) \
90 » ( ((unsigned char)(c)!=(f)->lbf && (f)->wpos<(f)->wend) \
90 ? *(f)->wpos++ = (c) : __overflow((f),(c)) ) 91 ? *(f)->wpos++ = (c) : __overflow((f),(c)) )
91 92
92 /* Caller-allocated FILE * operations */ 93 /* Caller-allocated FILE * operations */
93 FILE *__fopen_rb_ca(const char *, FILE *, unsigned char *, size_t); 94 FILE *__fopen_rb_ca(const char *, FILE *, unsigned char *, size_t);
94 int __fclose_ca(FILE *); 95 int __fclose_ca(FILE *);
95 96
96 #endif 97 #endif
OLDNEW
« no previous file with comments | « fusl/src/internal/dynlink.h ('k') | fusl/src/internal/syscall.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698