summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorArun Raghavan <ford_prefect@gentoo.org>2011-01-12 18:11:23 +0530
committerEdward Hervey <edward.hervey@collabora.co.uk>2011-01-12 15:04:04 +0100
commit778159a68516a5cd052156a789cbb800b4dac250 (patch)
tree324adcc89ba1124a1dd051ed2819f3c1d5a61191 /codegen
parent21a885d462496fa7148abf21f7a24b511bc5f2e0 (diff)
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
Diffstat (limited to 'codegen')
-rw-r--r--codegen/override.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/override.py b/codegen/override.py
index 2e8c6a4..fde8f4f 100644
--- a/codegen/override.py
+++ b/codegen/override.py
@@ -220,7 +220,7 @@ class Overrides:
return 0
def is_type_ignored(self, name):
- return name in self.type_ignores
+ return name.rstrip('*') in self.type_ignores
def is_overriden(self, name):
return self.overrides.has_key(name)