Commit efb47ac7 authored by Robert Bradshaw's avatar Robert Bradshaw

sagex_multi_file.patch from Joel Mohler (sane cross-file type cmp)

parent 2bdef08a
......@@ -618,6 +618,15 @@ class CStructOrUnionType(CType):
base = "%s %s" % (self.kind, self.cname)
return "%s %s" % (public_decl(base, dll_linkage), entity_code)
def __cmp__(self, other):
try:
if self.name == other.name:
return 0
else:
return 1
except AttributeError:
return 1
def is_complete(self):
return self.scope is not None
......
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