[Mesa-dev] [Bug 100227] gl_marshal.py: generating duplicate declaration specifiers
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri May 5 11:14:54 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=100227
--- Comment #3 from Bartosz Tomczyk <bartosz.tomczyk86 at gmail.com> ---
I agree with Gustaw, that it should be changed to "const GLvoid *const".
Something like that should work(not tested):
--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -177,11 +177,11 @@ class PrintCode(gl_XML.gl_print_base):
with indent():
for p in func.fixed_params:
if p.count:
- out('const {0} * {1} = cmd->{1};'.format(
- p.get_base_type_string(), p.name))
+ out('const {0} * const {1} = cmd->{1};'.format(
+ p.get_base_type_string().lstrip('const'), p.name))
else:
out('const {0} {1} = cmd->{1};'.format(
- p.type_string(), p.name))
+ p.type_string().lstrip('const'), p.name))
if func.variable_params:
for p in func.variable_params:
out('const {0} * {1};'.format(
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170505/11381228/attachment-0001.html>
More information about the mesa-dev
mailing list