[libc-commits] [PATCH] D142495: [libc] add scanf current position conversion
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Jan 24 11:31:38 PST 2023
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.
To add the current position (%n) conversion, some reorganization needed
to be done. The "write a number to this pointer using the length
modifier" utilities and a couple other shared parsing functions have
been moved into converter_utils.h. This made implementing
current_pos_converter very simple.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142495
Files:
libc/src/stdio/scanf_core/CMakeLists.txt
libc/src/stdio/scanf_core/converter.cpp
libc/src/stdio/scanf_core/converter_utils.h
libc/src/stdio/scanf_core/current_pos_converter.cpp
libc/src/stdio/scanf_core/current_pos_converter.h
libc/src/stdio/scanf_core/float_converter.cpp
libc/src/stdio/scanf_core/int_converter.cpp
libc/src/stdio/scanf_core/scanf_main.cpp
libc/test/src/stdio/sscanf_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142495.491862.patch
Type: text/x-patch
Size: 18563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230124/1a642c40/attachment-0001.bin>
More information about the libc-commits
mailing list