Module: Mesa
Branch: main
Commit: 9b6e2783ebc0709b6d908c48c50e6e5375110789
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b6e2783ebc0709b6d908c48c50e6e5375110789

Author: Marek Olšák <[email protected]>
Date:   Mon Aug 29 19:17:33 2022 -0400

gl_marshal.py: C style fixups

Acked-By: Mike Blumenkrantz <[email protected]>
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18199>

---

 src/mapi/glapi/gen/gl_marshal.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mapi/glapi/gen/gl_marshal.py b/src/mapi/glapi/gen/gl_marshal.py
index 42c36702e77..0cb632f6ee5 100644
--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -196,7 +196,7 @@ class PrintCode(gl_XML.gl_print_base):
         with indent():
             for p in fixed_params:
                 if p.count:
-                    p_decl = '{0} * {1} = cmd->{1};'.format(
+                    p_decl = '{0} *{1} = cmd->{1};'.format(
                             p.get_base_type_string(), p.name)
                 else:
                     p_decl = '{0} {1} = cmd->{1};'.format(
@@ -211,7 +211,7 @@ class PrintCode(gl_XML.gl_print_base):
 
             if variable_params:
                 for p in variable_params:
-                    out('{0} * {1};'.format(
+                    out('{0} *{1};'.format(
                             p.get_base_type_string(), p.name))
                 out('const char *variable_data = (const char *) (cmd + 1);')
                 i = 1
@@ -237,7 +237,7 @@ class PrintCode(gl_XML.gl_print_base):
             else:
                 struct = 'struct marshal_cmd_{0}'.format(func.name)
                 out('const unsigned cmd_size = (align(sizeof({0}), 8) / 
8);'.format(struct))
-                out('assert (cmd_size == cmd->cmd_base.cmd_size);')
+                out('assert(cmd_size == cmd->cmd_base.cmd_size);')
                 out('return cmd_size;')
         out('}')
 

Reply via email to