Handle blobs better.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 30 Nov 2010 01:04:19 +0000 (01:04 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 30 Nov 2010 01:04:19 +0000 (01:04 +0000)
apigen/glspec.py

index ec8330c..6408acb 100755 (executable)
@@ -211,7 +211,7 @@ class SpecParser(LineParser):
         elif kind.startswith("array"):
             arg_type = 'OpaquePointer(%s)' % base_type
 
-            if base_type == 'Void':
+            if base_type in ('Void', 'void', 'GLvoid'):
                 constructor = 'Blob'
             else:
                 constructor = 'Array'