@@ -924,18 +924,20 @@ class type_qualifiers_t(object):
924924
925925 """contains additional information about type: mutable, static, extern"""
926926
927- def __init__ (self , has_static = False , has_mutable = False ):
927+ def __init__ (self , has_static = False , has_mutable = False , has_extern = False ):
928928 self ._has_static = has_static
929+ self ._has_extern = has_extern
929930 self ._has_mutable = has_mutable
930931
931932 def __eq__ (self , other ):
932933 if not isinstance (other , type_qualifiers_t ):
933934 return False
934935 return self .has_static == other .has_static \
936+ and self .has_extern == other .has_extern \
935937 and self .has_mutable == other .has_mutable
936938
937939 def __hash__ (self ):
938- return super .__hash__ (self )
940+ return super ( type_qualifiers_t , self ) .__hash__ ()
939941
940942 def __ne__ (self , other ):
941943 return not self .__eq__ (other )
@@ -944,6 +946,7 @@ def __lt__(self, other):
944946 if not isinstance (other , type_qualifiers_t ):
945947 return object .__lt__ (self , other )
946948 return self .has_static < other .has_static \
949+ and self .has_extern < other .has_extern \
947950 and self .has_mutable < other .has_mutable
948951
949952 @property
@@ -956,12 +959,11 @@ def has_static(self, has_static):
956959
957960 @property
958961 def has_extern (self ):
959- """synonym to static"""
960- return self .has_static
962+ return self ._has_extern
961963
962964 @has_extern .setter
963965 def has_extern (self , has_extern ):
964- self .has_static = has_extern
966+ self ._has_extern = has_extern
965967
966968 @property
967969 def has_mutable (self ):
0 commit comments