The blog post from yday brought back this question: why aren't we using C99 in #curl? Here's my past response:
daniel.haxx.se/blog/2022/11/17…
Considering C99 for curl
tldr: we stick to C89 for now. The curl project builds on foundations that started in late 1996 with the tool named httpget.daniel.haxx.se
Stefan Eissing
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Stefan Eissing • • •Christoph Russow
in reply to daniel:// stenberg:// • • •Howard Chu @ Symas
in reply to Stefan Eissing • • •@icing the question of "what benefit does it bring" still remains.
We finally started using vararg macros for our Debug() macros in OpenLDAP. We also use snprintf if available. We still don't use C++ style comments. The change in Debug macros really makes it a pain to backport bugfixes from tip to older releases. Annoying...
Stefan Eissing
in reply to Howard Chu @ Symas • • •@hyc We use vararg macros when available with static functions in headers when not. Would be nice to switch that off.
Otherwise I am more keen on using stdint.h everywhere.
Christian Huitema
in reply to Stefan Eissing • • •MSVC versions... Aren't they fractal? There are at least 3 compiler versions available in VS2022: v141 (2017), v142 (2019) and v143 (2022). And then there are multiple supported versions (at least 10 and 11), and multiple versions of the Windows toolkit. Not to mention x64 vs x86, and debug vs release. And you cannot link libraries if compilers or toolkit mismatch. Are you testing all that?
daniel:// stenberg://
in reply to Christian Huitema • • •Christian Huitema
in reply to daniel:// stenberg:// • • •