Repository navigation
Conversation
|
Sorry to be blunt, but this makes absolutely zero sense to me. Stefan just started using these masks today, which made me commit I might be taking a break from curl. |
I don't understand. What in my reasoning is unclear? I think we can increase code readability by avoiding these (unnecessary) defines. It is not a critique of you nor your work, it is me looking at the code and thinking we can make it read better. |
5c3ebfc to
02e07ff
Compare
|
I glimpsed your use of them. Maybe I jumped too soon?If there is no downside to the simpler %u, then lets stick to it. Am 07.01.2026 um 22:52 schrieb Viktor Szakats ***@***.***>:vszakats left a comment (curl/curl#20215)
Sorry to be blunt, but this makes absolutely zero sense to me.
Stefan just started using these masks today, which made me commit
these to prepar for it:
https://github.com/curl/curl/pull/20207/files
I might be taking a break from curl.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
The only downside I can think of is that we need some kind of adjustment/hack to make it not cause warnings with DJGPP. I'm trying that out in this PR. |
Avoid using PRIu32 and PRId32 in product source code. We don't need it. It reduces readability. It is also inconsistent since unsigned int has the same size and does not require the define. DJGPP warns about using %u for uint32_t by default because it seems to typedef it to unsigned long instead of unsigned int. Which even that is annoying since long and int are both 32 bit on this platform. We use our own *printf() implementation and we know this is safe. This work-around defines uint32_t for DJGPP into unsigned int to avoid the warnings and thus the need to use PRIu32 and PRId32. Closes #20215
02e07ff to
19f9654
Compare
|
augment review |
🤖 Augment PR SummarySummary: This PR simplifies several internal log/trace Changes:
Technical Notes: Assumes curl’s internal 🤖 Was this summary useful? React with 👍 or 👎 |
Since not using `PRI*` macros, this isn't needed. Follow-up to 13c1a93 curl#20215 Revert 4c9e4e9 curl#20208
Since not using `PRI*` macros, this isn't needed. Follow-up to 13c1a93 curl#20215 Revert 4c9e4e9 curl#20208
Also: fix indent. Follow-up to 13c1a93 curl#20215 Closes curl#21234
Avoid using PRIu32 and PRId32 in product source code. We don't need it.
It reduces readability. It is also inconsistent since unsigned int has
the same size and does not require the define.
DJGPP warns about using %u for uint32_t by default because it seems to
typedef it to unsigned long instead of unsigned int. Which even that is
annoying since long and int are both 32 bit on this platform.
We use our own *printf() implementation and we know this is safe.
This work-around defines uint32_t for DJGPP into unsigned int to avoid
the warnings and thus the need to use PRIu32 and PRId32.