Commit 4359a047 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix using non-encoded strings as identifiers.

parent 857771c7
...@@ -706,7 +706,7 @@ class CArgDeclNode(Node): ...@@ -706,7 +706,7 @@ class CArgDeclNode(Node):
# We fix that here. # We fix that here.
if isinstance(self.declarator, CNameDeclaratorNode) and self.declarator.name == '': if isinstance(self.declarator, CNameDeclaratorNode) and self.declarator.name == '':
if nonempty: if nonempty:
self.declarator.name = self.base_type.name self.declarator.name = EncodedString(self.base_type.name)
self.base_type.name = None self.base_type.name = None
self.base_type.is_basic_c_type = False self.base_type.is_basic_c_type = False
could_be_name = True could_be_name = True
...@@ -850,7 +850,7 @@ class CSimpleBaseTypeNode(CBaseTypeNode): ...@@ -850,7 +850,7 @@ class CSimpleBaseTypeNode(CBaseTypeNode):
## type = Builtin.type_type ## type = Builtin.type_type
else: else:
type = py_object_type type = py_object_type
self.arg_name = self.name self.arg_name = EncodedString(self.name)
else: else:
if self.templates: if self.templates:
if not self.name in self.templates: if not self.name in self.templates:
......
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