[core] rm C99 workaround for snprintf - #23240
Conversation
Test Results 23 files 23 suites 3d 19h 31m 8s ⏱️ For more details on these failures, see this check. Results for commit 48ef7a4. ♻️ This comment has been updated with latest results. |
jblomer
left a comment
There was a problem hiding this comment.
Thanks! In principle looks good to me but the <cstdio> include should be in the include section of standard headers, below the ROOT includes.
ferdymercury
left a comment
There was a problem hiding this comment.
mv to include section below or rm if duplicate
ferdymercury
left a comment
There was a problem hiding this comment.
mv to include section below or rm if duplicate
oops sorry I missed that |
No problem, let's just remove the include in the places where it's not needed. |
08467fa to
e7ff1fc
Compare
e7ff1fc to
6e350b2
Compare
6e350b2 to
f855f3e
Compare
I think I checked everywhere now :) |
hageboeck
left a comment
There was a problem hiding this comment.
Very nice initiative!
If we remove snprintf.h, we should also clean up this (and below in the same file):
root/core/foundation/inc/ROOT/RConfig.hxx
Lines 65 to 67 in b6f36a1
Finally, we should probably leave a note in the release notes that this header disappears from ROOT, and that people should use <cstdio>. What do you think?
f855f3e to
b323245
Compare
Sorry that I didn't point this out immediately, but there's also the opposite |
5017a60 to
48ef7a4
Compare
it's part of the standard since C11, so no need for special wrapper use C++ header name mv C std headers to include section below or rm duplicate as suggested by jblomer
[foundation] rm unused DONTNEED_VSNPRINTF macro
48ef7a4 to
900ca2e
Compare
it's part of the standard since C11, so no need for special wrapper