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

Emil Velikov emil.l.velikov at gmail.com
Fri Oct 23 03:15:01 PDT 2015


On 23 October 2015 at 00:34, Nanley Chery <nanleychery at gmail.com> wrote:
> 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).
>
One can bikeshed it until death, although it's substantially better
imho. As long as others are happy I'll keep quiet.

-Emil
P.S. Please don't forget to update the function comment/description.


More information about the mesa-dev mailing list