W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

[csswg-drafts] [filter-effects-1] Allow feTurbulence's reference implementation to compile (#6504)

From: Alan De Smet via GitHub <sysbot+gh@w3.org>
Date: Mon, 09 Aug 2021 20:03:07 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-964326733-1628539385-sysbot+gh@w3.org>
AlanDeSmet has just created a new issue for https://github.com/w3c/csswg-drafts:

== [filter-effects-1] Allow feTurbulence's reference implementation to compile ==
The specification for the `feTurbulenceElement` filter primitive includes "C code below show[ing] the exact algorithm". Unfortunately, the code does not compile under any of the C or C++ standards supported by gcc 9.3.0. It has some very old C assumptions that are not legal C++ (and may generate warning in a modern C compiler), as well as some C++ casting operators and use of the `bool` type that are not legal C. Some relatively simple changes will bring it into compliance with modern C. My attempt to do so is attached.

[turb.c.txt](https://github.com/w3c/csswg-drafts/files/6957087/turb.c.txt)


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6504 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 9 August 2021 20:03:10 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:42 UTC