Fix sizeof(type_name)
Fix sizeof(type_name)


Index: tools/wraptypes/cparser.py
===================================================================
--- tools/wraptypes/cparser.py	(revision 580)
+++ tools/wraptypes/cparser.py	(working copy)
@@ -230,7 +230,7 @@
                         | DEC_OP unary_expression
                         | unary_operator cast_expression
                         | SIZEOF unary_expression
-                        | SIZEOF '(' TYPE_NAME ')'
+                        | SIZEOF '(' type_name ')'
     '''

 def p_unary_operator(p):
@@ -599,6 +599,11 @@
         param.declarator.identifier = p[1]
         p[0] = (param,)

+def p_type_name(p):
+    '''type_name : specifier_qualifier_list
+                 | specifier_qualifier_list abstract_declarator
+    '''
+
 def p_abstract_declarator(p):
     '''abstract_declarator : pointer
                            | direct_abstract_declarator

theblacklion/pyglet,theblacklion/pyglet,adamlwgriffiths/Pyglet,seeminglee/pyglet64,mammadori/pyglet,adamlwgriffiths/Pyglet,oktayacikalin/pyglet,seeminglee/pyglet64,adamlwgriffiths/Pyglet,mammadori/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,theblacklion/pyglet,niklaskorz/pyglet,mammadori/pyglet,mammadori/pyglet,oktayacikalin/pyglet,niklaskorz/pyglet,oktayacikalin/pyglet,niklaskorz/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,adamlwgriffiths/Pyglet,seeminglee/pyglet64,niklaskorz/pyglet