This adds the main pieces of the last piece of printf, the converter.
This takes the completed format section from the parser and then
converts it to a string for the writer, which is why it was the last
piece to be written. So far it supports chars and strings, but more
pieces are coming. Additionally, it supports replacing all of the
conversion functions with user supplied versions at compile time to
allow for additional functionality.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rG6a22b185d6f9: [libc] add printf converter
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
change the converter from a class to a function, and update formatting.
libc/src/stdio/printf_core/converter.h | ||
---|---|---|
24 | no, it was mostly a class because the other two pieces are. Now that you've pointed it out it seems obvious to just pass the writer to the function. |
Nit: Empty line before this.