Nobody likes the name of the _mesa_lookup_enum_by_nr() function in Mesa. A nicer name would be something like _mesa_enum_string(). Same story for other similarly named functions in enums.c. Note that enums.c is generated by the gl_enums.py script so don't just edit the .c file.
I'm taking this task!
Change made by: commit 2f11e92cef51c88a09bc778e2ceca4ab50cf0017 mesa: Rename _mesa_lookup_enum_by_nr() to _mesa_enum_to_string(). Generated by sed; no manual changes. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.