#NEWLINE# def __init__( self , element ) : #NEWLINE# #INDENT# text = '' . join ( element . itertext ( ) ) #NEWLINE# self . type = ( text . replace ( 'const' , '' ) . replace ( 'unsigned' , '' ) . replace ( 'struct' , '' ) . strip ( ) . split ( None , 1 ) [ 0 ] if ( element . find ( 'ptype' ) is None ) else element . find ( 'ptype' ) . text ) #NEWLINE# self . is_pointer = ( 0 if ( text is None ) else text . count ( '*' ) ) #NEWLINE# self . is_pointer += len ( _ARRAY_RE . findall ( text ) ) #NEWLINE# self . is_const = ( False if ( text is None ) else ( 'const' in text ) ) #NEWLINE# self . is_unsigned = ( False if ( text is None ) else ( 'unsigned' in text ) ) #NEWLINE# if ( ( 'struct' in text ) and ( 'struct' not in self . type ) ) : #NEWLINE# #INDENT# self . type = 'struct {}' . format ( self . type )