|
9 | 9 | #ifndef LLVM_LIBC_SRC_STDIO_SCANF_CORE_READER_H |
10 | 10 | #define LLVM_LIBC_SRC_STDIO_SCANF_CORE_READER_H |
11 | 11 |
|
| 12 | +#include "hdr/types/FILE.h" |
12 | 13 | #include "src/__support/File/file.h" |
13 | 14 | #include "src/__support/macros/attributes.h" // For LIBC_INLINE |
14 | 15 | #include "src/__support/macros/config.h" |
15 | | -#include "hdr/types/FILE.h" |
16 | 16 |
|
17 | 17 | #include <stddef.h> |
18 | 18 |
|
19 | | - |
20 | 19 | namespace LIBC_NAMESPACE_DECL { |
21 | 20 | namespace scanf_core { |
22 | 21 | // We use the name "reader_internal" over "internal" because |
23 | | -// "internal" causes name lookups in files that include the current header to be ambigious |
24 | | -// i.e. `internal::foo` in those files, will try to lookup in `LIBC_NAMESPACE::scanf_core::internal` over `LIBC_NAMESPACE::internal` |
25 | | -// for e.g., `internal::ArgList` in `libc/src/stdio/scanf_core/scanf_main.h` |
| 22 | +// "internal" causes name lookups in files that include the current header to be |
| 23 | +// ambigious i.e. `internal::foo` in those files, will try to lookup in |
| 24 | +// `LIBC_NAMESPACE::scanf_core::internal` over `LIBC_NAMESPACE::internal` for |
| 25 | +// e.g., `internal::ArgList` in `libc/src/stdio/scanf_core/scanf_main.h` |
26 | 26 | namespace reader_internal { |
27 | 27 |
|
28 | 28 | #if defined(LIBC_TARGET_ARCH_IS_GPU) |
@@ -68,7 +68,6 @@ LIBC_INLINE void ungetc(int c, void *f) { |
68 | 68 |
|
69 | 69 | } // namespace reader_internal |
70 | 70 |
|
71 | | - |
72 | 71 | // This is intended to be either a raw string or a buffer syncronized with the |
73 | 72 | // file's internal buffer. |
74 | 73 | struct ReadBuffer { |
|
0 commit comments