File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
libc/src/stdio/scanf_core Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 66//
77// ===----------------------------------------------------------------------===//
88
9- #include " hdr/types/FILE.h"
109#include " src/stdio/scanf_core/reader.h"
11- #include " src/__support/macros/config .h"
10+ #include " hdr/types/FILE .h"
1211#include " src/__support/File/file.h"
12+ #include " src/__support/macros/config.h"
1313
1414#include < stddef.h>
1515
16-
17-
18-
1916namespace LIBC_NAMESPACE_DECL {
2017namespace scanf_core {
2118
@@ -51,7 +48,7 @@ LIBC_INLINE void ungetc(int c, void *f) {
5148 reinterpret_cast <LIBC_NAMESPACE::File *>(f)->ungetc_unlocked (c);
5249}
5350
54- #else // defined(LIBC_COPT_STDIO_USE_SYSTEM_FILE)
51+ #else // defined(LIBC_COPT_STDIO_USE_SYSTEM_FILE)
5552
5653// Since ungetc_unlocked isn't always available, we don't acquire the lock for
5754// system files.
Original file line number Diff line number Diff line change @@ -33,14 +33,13 @@ class Reader {
3333 // TODO: Set buff_len with a proper constant
3434 LIBC_INLINE Reader (ReadBuffer *string_buffer) : rb(string_buffer) {}
3535
36- LIBC_INLINE Reader (void *stream,
37- ReadBuffer *stream_buffer = nullptr )
38- : rb(stream_buffer), input_stream(stream){}
36+ LIBC_INLINE Reader (void *stream, ReadBuffer *stream_buffer = nullptr )
37+ : rb(stream_buffer), input_stream(stream) {}
3938
4039 // This returns the next character from the input and advances it by one
4140 // character. When it hits the end of the string or file it returns '\0' to
4241 // signal to stop parsing.
43- char getc ();
42+ char getc ();
4443
4544 // This moves the input back by one character, placing c into the buffer if
4645 // this is a file reader, else c is ignored.
You can’t perform that action at this time.
0 commit comments