Adrian, hi
Do you remember my letting you know about compiler error in TextCodec.cpp when using clang + libc++ as utilities. I noticed you fix it in 2.25 versions of the 'webkit-gtk', great. But may I ask you to port it back in 2.24? I am gentoo developer and gnome community refuses to provide unstable version of webkit-gtk. I don't expect any issues if you have included 'cstdio' in TextCodec.cpp, this is only the header file, it can be safely included without any bad consequences. May we port it to a stable version?
Thank you
23.05.2019, 17:38, "Adrian Perez de Castro" <ape...@igalia.com>:
On Thu, 23 May 2019 14:47:45 +0300, Konstantin Tokarev <annu...@yandex.ru> wrote:
23.05.2019, 12:01, "Adrian Perez de Castro" <ape...@igalia.com>:
> On Wed, 22 May 2019 22:58:01 +0300, Denis Pronin <dann...@yandex.ru> wrote:
> Non-text part: text/html
>
>> Actually, including <cstdio> would do because it declares 'using
>> std::snprinf' in global space. Moreover, there is a common recomendation
>> to use c++ wrappers starting from <c...> over c-headers ending with <.h>
>> in c++ code. I would rather you followed this recomendation to not break
>> the rule
>
> The WebKit coding style [1] does not specify what to do in this case where
> both a plain C (stdio.h) and C++ headers (cstdio) are available, so I agree
> with Denis here that it is better to use the latter (cstdio)
However, most of existing sources include stdio.h (91 vs 4 for cstdio, excluding ThirdParty)
That's interesting, thanks for checking. In the end I settled on the “modern”
way of using <cstdio> and let's see how the review of the patch goes :-)
Cheers,
—Adrián
_______________________________________________ webkit-gtk mailing list webkit-gtk@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-gtk