mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
glapi: remap_helper.py: Fix some low hanging style issues
This makes the tools shut up about a bunch of problems, making them more useful for catching actual problems. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
cf718cc964
commit
bdae3bc1ff
1 changed files with 13 additions and 4 deletions
|
|
@ -24,9 +24,12 @@
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
import gl_XML
|
import sys
|
||||||
|
import getopt
|
||||||
|
|
||||||
import license
|
import license
|
||||||
import sys, getopt, string
|
import gl_XML
|
||||||
|
|
||||||
|
|
||||||
def get_function_spec(func):
|
def get_function_spec(func):
|
||||||
sig = ""
|
sig = ""
|
||||||
|
|
@ -54,6 +57,7 @@ def get_function_spec(func):
|
||||||
|
|
||||||
return spec
|
return spec
|
||||||
|
|
||||||
|
|
||||||
class PrintGlRemap(gl_XML.gl_print_base):
|
class PrintGlRemap(gl_XML.gl_print_base):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
gl_XML.gl_print_base.__init__(self)
|
gl_XML.gl_print_base.__init__(self)
|
||||||
|
|
@ -168,12 +172,13 @@ def show_usage():
|
||||||
print " -c ver Version can be 'es1' or 'es2'."
|
print " -c ver Version can be 'es1' or 'es2'."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
|
def main():
|
||||||
file_name = "gl_API.xml"
|
file_name = "gl_API.xml"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
(args, trail) = getopt.getopt(sys.argv[1:], "f:c:")
|
(args, trail) = getopt.getopt(sys.argv[1:], "f:c:")
|
||||||
except Exception,e:
|
except Exception:
|
||||||
show_usage()
|
show_usage()
|
||||||
|
|
||||||
es = None
|
es = None
|
||||||
|
|
@ -190,3 +195,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
printer = PrintGlRemap()
|
printer = PrintGlRemap()
|
||||||
printer.Print( api )
|
printer.Print( api )
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue