summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2017-04-13 17:50:10 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2017-05-04 18:12:07 +0100
commitedb7165b25aa4f9be445988f524f54dc630dbcbe (patch)
treeb10c8c65c61d35c63a32f85e90aadb98adc2fc75 /src
parent6d6913ba5a679766331405017f40a958f7b933c8 (diff)
gl_table.py: always regenerate the complete struct _glapi_table
Currently we would generate a partial one as we do non-shared glapi. At the same time since it's local, we don't care that much if we have a few extra bytes of space in the table. Drop the guard, which allows us to simplify both build system and code. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/mapi/glapi/gen/gl_table.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py
index 43c9135d2d1..80a44f48488 100644
--- a/src/mapi/glapi/gen/gl_table.py
+++ b/src/mapi/glapi/gen/gl_table.py
@@ -40,20 +40,14 @@ class PrintGlTable(gl_XML.gl_print_base):
self.license = license.bsd_license_template % ( \
"""Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
(C) Copyright IBM Corporation 2004""", "BRIAN PAUL, IBM")
- self.ifdef_emitted = False
return
def printBody(self, api):
for f in api.functionIterateByOffset():
- if not f.is_abi() and not self.ifdef_emitted:
- print '#if !defined HAVE_SHARED_GLAPI'
- self.ifdef_emitted = True
arg_string = f.get_parameter_string()
print ' %s (GLAPIENTRYP %s)(%s); /* %d */' % (
f.return_type, f.name, arg_string, f.offset)
- print '#endif /* !defined HAVE_SHARED_GLAPI */'
-
def printRealHeader(self):
print '#ifndef GLAPIENTRYP'
print '# ifndef GLAPIENTRY'