[libc-commits] [PATCH] D137117: [libc] add scanf reader

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Oct 31 14:59:17 PDT 2022


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

This is the interface that will be used to read from a file or string in
scanf. This patch also adds the string and file implementations of the
reader, although the file reader is not yet complete since ungetc has
not yet been implemented.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137117

Files:
  libc/src/stdio/scanf_core/CMakeLists.txt
  libc/src/stdio/scanf_core/file_reader.cpp
  libc/src/stdio/scanf_core/file_reader.h
  libc/src/stdio/scanf_core/reader.cpp
  libc/src/stdio/scanf_core/reader.h
  libc/src/stdio/scanf_core/string_reader.cpp
  libc/src/stdio/scanf_core/string_reader.h
  libc/test/src/stdio/scanf_core/CMakeLists.txt
  libc/test/src/stdio/scanf_core/string_reader_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137117.472145.patch
Type: text/x-patch
Size: 10395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221031/06cafc05/attachment.bin>


More information about the libc-commits mailing list