Commit b1e79110 authored by Mark Florisson's avatar Mark Florisson

Revert "implement __hash__() and __eq__() for ctypedefs by delegating to the base type"

    This breaks comparing typedef types and results
    in funky things such as getting temporaries of
    different types.

This reverts commit e3838e42.
parent 033c5cdd
...@@ -333,12 +333,6 @@ class CTypedefType(BaseType): ...@@ -333,12 +333,6 @@ class CTypedefType(BaseType):
def __repr__(self): def __repr__(self):
return "<CTypedefType %s>" % self.typedef_cname return "<CTypedefType %s>" % self.typedef_cname
def __hash__(self):
return hash(self.typedef_base_type)
def __eq__(self, other):
return other == self.typedef_base_type
def __str__(self): def __str__(self):
return self.typedef_name return self.typedef_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment