OLD | NEW |
1 #include "stdio_impl.h" | 1 #include "stdio_impl.h" |
2 | 2 |
3 static unsigned char buf[BUFSIZ+UNGET]; | 3 static unsigned char buf[BUFSIZ + UNGET]; |
4 static FILE f = { | 4 static FILE f = { |
5 » .buf = buf+UNGET, | 5 .buf = buf + UNGET, |
6 » .buf_size = sizeof buf-UNGET, | 6 .buf_size = sizeof buf - UNGET, |
7 » .fd = 1, | 7 .fd = 1, |
8 » .flags = F_PERM | F_NORD, | 8 .flags = F_PERM | F_NORD, |
9 » .lbf = '\n', | 9 .lbf = '\n', |
10 » .write = __stdout_write, | 10 .write = __stdout_write, |
11 » .seek = __stdio_seek, | 11 .seek = __stdio_seek, |
12 » .close = __stdio_close, | 12 .close = __stdio_close, |
13 » .lock = -1, | 13 .lock = -1, |
14 }; | 14 }; |
15 FILE *const stdout = &f; | 15 FILE* const stdout = &f; |
16 FILE *volatile __stdout_used = &f; | 16 FILE* volatile __stdout_used = &f; |
OLD | NEW |