codegen: Handle pointer types in is_type_ignored()

This ensures that if type X is ignored, then pointers to X (and pointers
to pointers to X, etc.) are also ignored.

Caveat: this also means that ignore-type should only be used with base
types and not pointer types.

Fixes #639293
This commit is contained in:
Arun Raghavan 2011-01-12 18:11:23 +05:30 committed by Edward Hervey
parent 21a885d462
commit 778159a685

View file

@ -220,7 +220,7 @@ class Overrides:
return 0 return 0
def is_type_ignored(self, name): def is_type_ignored(self, name):
return name in self.type_ignores return name.rstrip('*') in self.type_ignores
def is_overriden(self, name): def is_overriden(self, name):
return self.overrides.has_key(name) return self.overrides.has_key(name)