Uh oh!
There was an error while loading. Please reload this page.
Remove printf implementation - #81243
Conversation
Replace implementation of file related printfs using the platform implementation (PAL_fprintf and PAL_vfprintf). Remove tests for PAL_printf, PAL_vprintf, PAL_fprintf and PAL_vfprintf since they are all now supplied by the platform.
Left _vsnprintf_s tests to ensure the _TRUNCATE logic is validated.
AaronRobinsonMSFT
commented
Jan 27, 2023
AaronRobinsonMSFT
commented
Jan 27, 2023
/azp list |
AaronRobinsonMSFT
commented
Jan 27, 2023
/azp run runtime-coreclr ilasm |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
jkoritzinsky
commented
Jan 27, 2023
It looks like the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AaronRobinsonMSFT
commented
Jan 27, 2023
@jkoritzinsky It should be possible, but note that it does have semantic differences. Particularly the return value. It is also worth noting MSVC complains if not using the |
jkotas
commented
Jan 27, 2023
It is not just MSVC. The static analysis tools that are part of Microsoft release gates are going to complain about it too. Switching back to non- |
jkoritzinsky
commented
Jan 27, 2023
Are the |
AaronRobinsonMSFT
commented
Jan 27, 2023
We are likely to always have a bit of this. MSVC doesn't officially support C11 either so the tooling there is going to have rough edges. As the PAL evolves this may change but for right now we need a shim. |
am11
commented
Jan 27, 2023
According to CRT team |
AaronRobinsonMSFT
commented
Jan 27, 2023
That is the official statement, but it isn't complete support and that was admitted in the announcement - https://devblogs.microsoft.com/cppblog/c11-and-c17-standard-support-arriving-in-msvc/#whats-not. I'm not saying there isn't some support but it isn't as consistent with other compilers and playing the piecemeal game is tiresome. This also is difficult because of mono and potential code sharing. Yes, we don't share this code, but introducing C11 as a dependency and then realizing that some part can't be used by mono is a bad idea. For now, we should focus on C99 and work towards C11 as more support is enabled. This PR has no need for that at present. |
AaronRobinsonMSFT
commented
Jan 27, 2023
/azp run runtime-coreclr ilasm |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
AaronRobinsonMSFT
commented
Jan 28, 2023
Uh oh!
There was an error while loading. Please reload this page.
Replace implementation of file related printfs using the
platform implementation (
PAL_fprintfandPAL_vfprintf).Remove tests for
PAL_printf,PAL_vprintf,PAL_fprintfandPAL_vfprintfsince they are all now supplied by the platform.Left
_vsnprintf_stests to ensure the_TRUNCATElogic is validated.
Size impact (bytes)