[Mesa-dev] [RFC 20/21] mesa: Remove gl_extensions::dummy

Nanley Chery nanleychery at gmail.com
Thu Oct 22 16:34:21 PDT 2015


On Thu, Oct 22, 2015 at 3:40 AM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:

> On 19 October 2015 at 23:44, Nanley Chery <nanleychery at gmail.com> wrote:
> > From: Nanley Chery <nanley.g.chery at intel.com>
> >
> > This variable existed to provide an unsigned error value for
> > name_to_offset(). Since o(extension_sentinel) is also a valid unsigned
> > error value, save space and replace this mysterious variable with
> > a less mysterious one (extension_sentinel).
> >
> That's the first time I see someone calling 0, a "unsigned error
> value". Perhaps reword the commit message a bit ? The comment/function
> description should be updated as well.
>
>
How's the following?

This variable existed to enable 0 as a valid error value for
name_to_offset(). Since o(extension_sentinel) is also a valid
error value, save space and replace this mysterious variable
with a less mysterious one (extension_sentinel).


> -Emil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151022/28fd7dad/attachment.html>


More information about the mesa-dev mailing list