Signed-off-by: Dave Airlie <airlied@redhat.com>
size NMTOKEN #REQUIRED
float (true | false) "false"
unsigned (true | false) "false"
+ pointer (true | false) "false"
glx_name NMTOKEN #IMPLIED>
<!ATTLIST enum name NMTOKEN #REQUIRED
count CDATA #IMPLIED
tn.size = int( element.nsProp( "size", None ), 0 )
tn.integer = not is_attr_true( element, "float" )
tn.unsigned = is_attr_true( element, "unsigned" )
+ tn.pointer = is_attr_true( element, "pointer" )
tn.name = "GL" + self.name
te.set_base_type_node( tn )
def get_stack_size(self):
- tn = self.expr[ len(self.expr) - 1 ]
+ tn = self.expr[ -1 ]
if tn.elements or tn.pointer:
return 4
def is_pointer(self):
- tn = self.expr[ len(self.expr) - 1 ]
+ tn = self.expr[ -1 ]
return tn.pointer
def format_string(self):
- tn = self.expr[ len(self.expr) - 1 ]
+ tn = self.expr[ -1 ]
if tn.pointer:
return "%p"
elif not tn.integer: