-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace nano printf implementation #3013
Conversation
- Dropping Skirrid Systems es-printf in favour of nanoprintf. - Update CMake and code accordingly.
WalkthroughThe changes involve the removal of the Changes
Possibly related PRs
Suggested labels
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (11)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- CMake/Modules/FindNF_CoreCLR.cmake (1 hunks)
- src/CLR/Core/Core.vcxproj (1 hunks)
- src/CLR/Core/Core.vcxproj.filters (2 hunks)
- src/CLR/Diagnostics/Info_Safeprintf.cpp (1 hunks)
- src/CLR/Helpers/nanoprintf/nanoprintf.h (1 hunks)
Files skipped from review due to trivial changes (1)
- src/CLR/Diagnostics/Info_Safeprintf.cpp
Additional comments not posted (35)
src/CLR/Core/Core.vcxproj.filters (1)
218-218
: LGTM!The removal of
nanoprintf.c
from the project file is consistent with the PR objective of replacing the existing printf implementation.src/CLR/Core/Core.vcxproj (1)
Line range hint
91-91
: LGTM!The removal of
nanoprintf.c
from the project file is consistent with the PR objective of replacing the existing printf implementation.CMake/Modules/FindNF_CoreCLR.cmake (1)
Line range hint
97-97
: LGTM!The removal of
nanoprintf.c
from the list of source files is consistent with the PR objective of replacing the existing printf implementation.src/CLR/Helpers/nanoprintf/nanoprintf.h (32)
2-3
: LGTM!The copyright and license information changes are correct and necessary for compliance.
8-13
: LGTM!The preprocessor directives for format specifiers are correctly defined and improve the configurability of the library.
54-65
: LGTM!The public API function declarations are correctly defined and enhance the functionality of the library.
60-60
: LGTM!The typedef for
npf_putc
is correctly defined and necessary for the new function declarations.
768-1049
: LGTM!The implementation of
npf_vpprintf
is correctly defined and enhances the functionality of the library.
1056-1062
: LGTM!The implementation of
npf_pprintf
is correctly defined and enhances the functionality of the library.
1064-1070
: LGTM!The implementation of
npf_snprintf
is correctly defined and enhances the functionality of the library.
1072-1091
: LGTM!The implementation of
npf_vsnprintf
is correctly defined and enhances the functionality of the library.
30-41
: LGTM!The preprocessor directives for visibility and attributes are correctly defined and necessary for the new function declarations.
306-486
: LGTM!The format specification parsing logic is correctly defined and enhances the functionality of the library.
549-698
: LGTM!The floating-point conversion logic is correctly defined and enhances the functionality of the library.
703-738
: LGTM!The binary format specifier logic is correctly defined and enhances the functionality of the library.
741-744
: LGTM!The buffer put character function is correctly defined and necessary for the new function implementations.
754-757
: LGTM!The count put character function is correctly defined and necessary for the new function implementations.
86-91
: LGTM!The preprocessor directives for conversion buffer size are correctly defined and necessary for the new function implementations.
135-147
: LGTM!The preprocessor directives for large format specifiers are correctly defined and necessary for the new function implementations.
149-206
: LGTM!The preprocessor directives for disabling warnings are correctly defined and necessary for the new function implementations.
208-214
: LGTM!The preprocessor directives for noinline attribute are correctly defined and necessary for the new function implementations.
216-222
: LGTM!The preprocessor directives for format specifier options are correctly defined and necessary for the new function implementations.
226-237
: LGTM!The preprocessor directives for length modifiers are correctly defined and necessary for the new function implementations.
239-261
: LGTM!The preprocessor directives for conversion specifiers are correctly defined and necessary for the new function implementations.
263-279
: LGTM!The typedef for
npf_format_spec
is correctly defined and necessary for the new function implementations.
281-287
: LGTM!The typedefs for integer types are correctly defined and necessary for the new function implementations.
289-293
: LGTM!The typedef for
npf_bufputc_ctx
is correctly defined and necessary for the new function implementations.
748-752
: LGTM!The typedef for
npf_cnt_putc_ctx
is correctly defined and necessary for the new function implementations.
505-516
: LGTM!The preprocessor directives for float conversion types are correctly defined and necessary for the new function implementations.
519-528
: LGTM!The preprocessor directives for float conversion buffer size are correctly defined and necessary for the new function implementations.
531-538
: LGTM!The preprocessor directives for double type are correctly defined and necessary for the new function implementations.
540-547
: LGTM!The preprocessor directives for floating-point conversion algorithms are correctly defined and necessary for the new function implementations.
703-738
: LGTM!The preprocessor directives for floating-point conversion types are correctly defined and necessary for the new function implementations.
703-738
: LGTM!The preprocessor directives for floating-point conversion types are correctly defined and necessary for the new function implementations.
703-738
: LGTM!The preprocessor directives for floating-point conversion types are correctly defined and necessary for the new function implementations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/CLR/Helpers/nanoprintf/nanoprintf.h (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/CLR/Helpers/nanoprintf/nanoprintf.h
Dropping this as nanoprintf implementation fails to pass all our unit tests. |
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
nanoprintf.c
file from the build process, which may resolve potential issues related to unused functionality.Documentation