summaryrefslogtreecommitdiff
path: root/src/mapi/glapi/gen/glX_proto_send.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/glapi/gen/glX_proto_send.py')
-rw-r--r--src/mapi/glapi/gen/glX_proto_send.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py
index d83d51968f..c4349ce2c0 100644
--- a/src/mapi/glapi/gen/glX_proto_send.py
+++ b/src/mapi/glapi/gen/glX_proto_send.py
@@ -150,7 +150,6 @@ class glx_pixel_function_stub(glX_XML.glx_function):
self.count_parameter_list = func.count_parameter_list
self.counter_list = func.counter_list
self.offsets_calculated = 0
- return
class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
@@ -163,7 +162,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
self.generic_sizes = [3, 4, 6, 8, 12, 16, 24, 32]
self.pixel_stubs = {}
self.debug = 0
- return
def printRealHeader(self):
print ''
@@ -312,7 +310,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
for size in self.generic_sizes:
self.print_generic_function(size)
- return
def printBody(self, api):
@@ -350,7 +347,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
self.printFunction(func, func.glx_vendorpriv_names[0])
self.printGetProcAddress(api)
- return
def printGetProcAddress(self, api):
procs = {}
@@ -400,7 +396,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
#endif /* GLX_SHARED_GLAPI */
""")
- return
def printFunction(self, func, name):
footer = '}\n'
@@ -450,7 +445,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
print "/* Missing GLX protocol for %s. */" % (name)
print footer
- return
def print_generic_function(self, n):
size = (n + 3) & ~3
@@ -467,7 +461,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
}
""" % (n, size + 4, size))
- return
def common_emit_one_arg(self, p, pc, adjust, extra_offset):
if p.is_array():
@@ -499,8 +492,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
else:
extra_offset = temp
- return
-
def pixel_emit_args(self, f, pc, large):
"""Emit the arguments for a pixel function. This differs from
common_emit_args in that pixel functions may require padding
@@ -554,7 +545,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
else:
print '__glXSendLargeImage(gc, compsize, %s, %s, %s, %s, %s, %s, %s, %s, %s);' % (dim_str, width, height, depth, param.img_format, param.img_type, param.name, pcPtr, pixHeaderPtr)
- return
def large_emit_begin(self, f, op_name = None):
if not op_name:
@@ -565,7 +555,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
print 'GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);'
print '(void) memcpy((void *)(pc + 0), (void *)(&cmdlenLarge), 4);'
print '(void) memcpy((void *)(pc + 4), (void *)(&op), 4);'
- return
def common_func_print_just_start(self, f, name):
print ' struct glx_context * const gc = __glXGetCurrentContext();'
@@ -791,7 +780,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
print ' }'
print ' return%s;' % (return_name)
- return
def printPixelFunction(self, f):
if self.pixel_stubs.has_key( f.name ):
@@ -848,7 +836,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
print '}'
if trailer: print trailer
- return
def printRenderFunction(self, f):
# There is a class of GL functions that take a single pointer
@@ -902,7 +889,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
print 'printf( "Exit %%s.\\n", "gl%s" );' % (f.name)
if trailer: print trailer
- return
class PrintGlxProtoInit_c(gl_XML.gl_print_base):
@@ -915,7 +901,6 @@ class PrintGlxProtoInit_c(gl_XML.gl_print_base):
Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
(C) Copyright IBM Corporation 2004"""),
"PRECISION INSIGHT, IBM")
- return
def printRealHeader(self):
print textwrap.dedent("""\
@@ -975,7 +960,6 @@ class PrintGlxProtoInit_c(gl_XML.gl_print_base):
#endif
""")
- return
def printBody(self, api):
for [name, number] in api.categoryIterate():
@@ -997,8 +981,6 @@ class PrintGlxProtoInit_c(gl_XML.gl_print_base):
print ' assert(o > 0);'
print ' table[o] = (_glapi_proc) __indirect_gl{0};'.format(func.name)
- return
-
class PrintGlxProtoInit_h(gl_XML.gl_print_base):
def __init__(self):
@@ -1013,7 +995,6 @@ class PrintGlxProtoInit_h(gl_XML.gl_print_base):
self.header_tag = "_INDIRECT_H_"
self.last_category = ""
- return
def printRealHeader(self):
print textwrap.dedent("""\