Remove custom (v)snprintf as it's always available since C99 - #5086
Remove custom (v)snprintf as it's always available since C99#5086Girgias wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Ugh ... can we do something against this?
There was a problem hiding this comment.
Maybe change the format precision?
Also this is only a problem on ZTS RELEASE builds and Derick has no idea why the compiler is complaining.
a2d5c20 to
1425299
Compare
1425299 to
792cf7d
Compare
|
I'm not sure about this. The custom snprintf definitely supports some non-standard things (like |
I'm gonna have a look through the code base with grep to see if some of the non standard formats are used and if yes how often. Some of them, like I suppose some of the custom ones are for locale aware conversion? |
|
So I ran a grep regex I suppose we could move everything to use standard formats and use (v)snprintf even in the other custom functions so that we get rid of our custom format converter. [1] https://gist.github.com/Girgias/b9a2b9926190630d433c84da0ef1b002 |
|
Improved the regex to |
|
@Girgias, please rebase to resolve the conflicts. What's the status of this PR? Can we get it ready for 8.2? |
I'm not sure if extensions in the wild use |
I suppose we maybe could also get rid of our custom format conversion implementation
format_converter()insnprintf.c(which would give us support foraandAmodifier) by relying on the system one.