[Mesa-dev] boolean usage in gallium
Marek Olšák
maraeo at gmail.com
Sun Jun 30 05:00:52 UTC 2019
boolean predates c99 support in MSVC. I think there is no reason for
boolean in gallium now.
Marek
On Sat., Jun. 29, 2019, 00:09 Ilia Mirkin, <imirkin at alum.mit.edu> wrote:
> Ken pointed out on IRC today that there was still a lot of "boolean"
> (vs bool/_Bool) usage in gallium. In fact, many interfaces are
> specified with boolean.
>
> I had it in my mind that I had at some point removed most boolean
> usage, but that is just not the case - first of all, the interfaces
> remain with it, and I could find no evidence of such a commit. I must
> have imagined it.
>
> Is there any reason to keep boolean around? I know conversions must be
> done carefully (since incorrect-but-working usage would not currently
> be caught by the compiler), but are there any practical reasons to
> avoid C99 _Bool in gallium code?
>
> If not, I may begin converting things over.
>
> Cheers,
>
> -ilia
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190630/4322cd31/attachment-0001.html>
More information about the mesa-dev
mailing list