Bug 65373 - Rename the _mesa_lookup_enum_by_nr() function
Summary: Rename the _mesa_lookup_enum_by_nr() function
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium trivial
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 19:55 UTC by Brian Paul
Modified: 2016-01-24 06:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Brian Paul 2013-06-04 19:55:10 UTC
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.
Comment 1 Arnas Milaševičius 2013-06-04 20:26:22 UTC
I'm taking this task!
Comment 2 Timothy Arceri 2016-01-24 06:49:02 UTC
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.